forked from suntzu93/threshold-tBTC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
362 lines (362 loc) · 14.7 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
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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Bridge
network: goerli
source:
abi: Bridge
address: "0x0Cad3257C4B7ec6de1f6926Fbf5714255a6632c3"
startBlock: 8364954
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Deposit
- Redemption
abis:
- name: Bridge
file: ./abis/Bridge.json
eventHandlers:
- event: DepositParametersUpdated(uint64,uint64,uint64,uint32)
handler: handleDepositParametersUpdated
- event: DepositRevealed(bytes32,uint32,indexed address,uint64,bytes8,indexed
bytes20,bytes20,bytes4,address)
handler: handleDepositRevealed
- event: DepositsSwept(bytes20,bytes32)
handler: handleDepositsSwept
- event: FraudChallengeDefeatTimedOut(indexed bytes20,bytes32)
handler: handleFraudChallengeDefeatTimedOut
- event: FraudChallengeDefeated(indexed bytes20,bytes32)
handler: handleFraudChallengeDefeated
- event: FraudChallengeSubmitted(indexed bytes20,bytes32,uint8,bytes32,bytes32)
handler: handleFraudChallengeSubmitted
- event: FraudParametersUpdated(uint96,uint32,uint96,uint32)
handler: handleFraudParametersUpdated
- event: GovernanceTransferred(address,address)
handler: handleGovernanceTransferred
- event: Initialized(uint8)
handler: handleInitialized
- event: MovedFundsSweepTimedOut(indexed bytes20,bytes32,uint32)
handler: handleMovedFundsSweepTimedOut
- event: MovedFundsSwept(indexed bytes20,bytes32)
handler: handleMovedFundsSwept
- event: MovingFundsBelowDustReported(indexed bytes20)
handler: handleMovingFundsBelowDustReported
- event: MovingFundsCommitmentSubmitted(indexed bytes20,bytes20[],address)
handler: handleMovingFundsCommitmentSubmitted
- event: MovingFundsCompleted(indexed bytes20,bytes32)
handler: handleMovingFundsCompleted
- event: MovingFundsParametersUpdated(uint64,uint64,uint32,uint32,uint96,uint32,uint16,uint64,uint32,uint96,uint32)
handler: handleMovingFundsParametersUpdated
- event: MovingFundsTimedOut(indexed bytes20)
handler: handleMovingFundsTimedOut
- event: MovingFundsTimeoutReset(indexed bytes20)
handler: handleMovingFundsTimeoutReset
- event: NewWalletRegistered(indexed bytes32,indexed bytes20)
handler: handleNewWalletRegistered
- event: NewWalletRequested()
handler: handleNewWalletRequested
- event: RedemptionParametersUpdated(uint64,uint64,uint64,uint64,uint32,uint96,uint32)
handler: handleRedemptionParametersUpdated
- event: RedemptionRequested(indexed bytes20,bytes,indexed
address,uint64,uint64,uint64)
handler: handleRedemptionRequested
- event: RedemptionTimedOut(indexed bytes20,bytes)
handler: handleRedemptionTimedOut
- event: RedemptionsCompleted(indexed bytes20,bytes32)
handler: handleRedemptionsCompleted
- event: SpvMaintainerStatusUpdated(indexed address,bool)
handler: handleSpvMaintainerStatusUpdated
- event: TreasuryUpdated(address)
handler: handleTreasuryUpdated
- event: VaultStatusUpdated(indexed address,bool)
handler: handleVaultStatusUpdated
- event: WalletClosed(indexed bytes32,indexed bytes20)
handler: handleWalletClosed
- event: WalletClosing(indexed bytes32,indexed bytes20)
handler: handleWalletClosing
- event: WalletMovingFunds(indexed bytes32,indexed bytes20)
handler: handleWalletMovingFunds
- event: WalletParametersUpdated(uint32,uint64,uint64,uint64,uint32,uint64,uint32)
handler: handleWalletParametersUpdated
- event: WalletTerminated(indexed bytes32,indexed bytes20)
handler: handleWalletTerminated
callHandlers:
- function: revealDeposit((bytes4,bytes,bytes,bytes4),(uint32,bytes8,bytes20,bytes20,bytes4,address))
handler: callHandleRevealDeposit
file: ./src/mappingBridge.ts
- kind: ethereum
name: TBTCVault
network: goerli
source:
abi: TBTCVault
address: "0x65eB0562FCe858f8328858c76E689aBedB78621F"
startBlock: 8364960
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Deposit
abis:
- name: TBTCVault
file: ./abis/TBTCVault.json
- name: TBTC
file: ./abis/TBTC.json
- name: Bridge
file: ./abis/Bridge.json
eventHandlers:
- event: OptimisticMintingCancelled(indexed address,indexed uint256)
handler: handleOptimisticMintingCancelled
- event: OptimisticMintingDebtRepaid(indexed address,uint256)
handler: handleOptimisticMintingDebtRepaid
- event: OptimisticMintingFinalized(indexed address,indexed uint256,indexed
address,uint256)
handler: handleOptimisticMintingFinalized
- event: OptimisticMintingRequested(indexed address,indexed uint256,indexed
address,uint256,bytes32,uint32)
handler: handleOptimisticMintingRequested
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: OptimisticMintingPaused()
handler: handleOptimisticMintingPaused
- event: OptimisticMintingUnpaused()
handler: handleOptimisticMintingUnPaused
- event: Minted(indexed address,uint256)
handler: handleMinted
- event: Unminted(indexed address,uint256)
handler: handlerUnminted
file: ./src/mappingTBTCVault.ts
- kind: ethereum
name: TBTC
network: goerli
source:
abi: TBTC
address: "0x679874fbe6d4e7cc54a59e315ff1eb266686a937"
startBlock: 8364943
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: TBTC
file: ./abis/TBTC.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mappingTBTCToken.ts
- kind: ethereum
name: TokenStaking
network: goerli
source:
abi: TokenStaking
address: "0x1da5d88C26EA4f87b5e09C3452eE2384Ee20DC75"
startBlock: 7681424
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Deposit
abis:
- name: TokenStaking
file: ./abis/TokenStaking.json
eventHandlers:
- event: AuthorizationDecreaseRequested(indexed address,indexed
address,uint96,uint96)
handler: handleAuthorizationDecreaseRequested
- event: AuthorizationIncreased(indexed address,indexed address,uint96,uint96)
handler: handleAuthorizationIncreased
- event: OwnerRefreshed(indexed address,indexed address,indexed address)
handler: handleOwnerRefreshed
- event: Staked(indexed uint8,indexed address,indexed
address,address,address,uint96)
handler: handleStaked
- event: TokensSeized(indexed address,uint96,indexed bool)
handler: handleTokensSeized
- event: ToppedUp(indexed address,uint96)
handler: handleToppedUp
- event: Unstaked(indexed address,uint96)
handler: handleUnstaked
file: ./src/mappingTokenStaking.ts
- kind: ethereum
name: RandomBeacon
network: goerli
source:
abi: RandomBeacon
address: "0xF177CfA720ceC42841c04A458f6c68e1243C1b49"
startBlock: 8364724
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DkgResultSubmitted
abis:
- name: RandomBeacon
file: ./abis/RandomBeacon.json
- name: SortitionPool
file: ./abis/SortitionPool.json
eventHandlers:
- event: AuthorizationDecreaseRequested(indexed address,indexed
address,uint96,uint96,uint64)
handler: handleAuthorizationDecreaseRequested
- event: AuthorizationIncreased(indexed address,indexed address,uint96,uint96)
handler: handleAuthorizationIncreased
- event: DkgMaliciousResultSlashed(indexed bytes32,uint256,address)
handler: handleDkgMaliciousResultSlashed
- event: DkgResultApproved(indexed bytes32,indexed address)
handler: handleDkgResultApproved
- event: DkgResultChallenged(indexed bytes32,indexed address,string)
handler: handleDkgResultChallenged
- event: DkgResultSubmitted(indexed bytes32,indexed
uint256,(uint256,bytes,uint8[],bytes,uint256[],uint32[],bytes32))
handler: handleDkgResultSubmitted
- event: DkgSeedTimedOut()
handler: handleDkgSeedTimedOut
- event: DkgStarted(indexed uint256)
handler: handleDkgStarted
- event: DkgStateLocked()
handler: handleDkgStateLocked
- event: DkgTimedOut()
handler: handleDkgTimedOut
- event: GovernanceTransferred(address,address)
handler: handleGovernanceTransferred
- event: GroupRegistered(indexed uint64,indexed bytes)
handler: handleGroupRegistered
- event: InactivityClaimed(indexed uint64,uint256,address)
handler: handleInactivityClaimed
- event: OperatorJoinedSortitionPool(indexed address,indexed address)
handler: handleOperatorJoinedSortitionPool
- event: OperatorRegistered(indexed address,indexed address)
handler: handleOperatorRegistered
- event: RelayEntryDelaySlashed(indexed uint256,uint256,address[])
handler: handleRelayEntryDelaySlashed
- event: RelayEntryRequested(indexed uint256,uint64,bytes)
handler: handleRelayEntryRequested
- event: RelayEntrySubmitted(indexed uint256,address,bytes)
handler: handleRelayEntrySubmitted
- event: RelayEntryTimedOut(indexed uint256,uint64)
handler: handleRelayEntryTimedOut
- event: RelayEntryTimeoutSlashed(indexed uint256,uint256,address[])
handler: handleRelayEntryTimeoutSlashed
- event: RewardsWithdrawn(indexed address,uint96)
handler: handleRewardsWithdrawn
- event: UnauthorizedSigningSlashed(indexed uint64,uint256,address[])
handler: handleUnauthorizedSigningSlashed
file: ./src/mappingRandomBeacon.ts
- kind: ethereum
name: SortitionPool
network: goerli
source:
abi: SortitionPool
address: "0x3FC63cDBC1fc82F6aDb82d3dEAF7c31723961540"
startBlock: 8364710
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- BetaOperatorsAdded
- ChaosnetDeactivated
- ChaosnetOwnerRoleTransferred
- IneligibleForRewards
- OwnershipTransferred
- RewardEligibilityRestored
abis:
- name: SortitionPool
file: ./abis/SortitionPool.json
eventHandlers:
- event: BetaOperatorsAdded(address[])
handler: handleBetaOperatorsAdded
- event: ChaosnetDeactivated()
handler: handleChaosnetDeactivated
- event: ChaosnetOwnerRoleTransferred(address,address)
handler: handleChaosnetOwnerRoleTransferred
- event: IneligibleForRewards(uint32[],uint256)
handler: handleIneligibleForRewards
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: RewardEligibilityRestored(indexed address,indexed uint32)
handler: handleRewardEligibilityRestored
file: ./src/mappingSortitionPool.ts
- kind: ethereum
name: SimplePREApplication
network: goerli
source:
abi: SimplePREApplication
address: "0x829fdCDf6Be747FEA37518fBd83dF70EE371fCf2"
startBlock: 8364954
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- OperatorBonded
- OperatorConfirmed
abis:
- name: SimplePREApplication
file: ./abis/SimplePREApplication.json
eventHandlers:
- event: OperatorBonded(indexed address,indexed address,uint256)
handler: handleOperatorBonded
- event: OperatorConfirmed(indexed address,indexed address)
handler: handleOperatorConfirmed
file: ./src/mappingSimplePreApplication.ts
- kind: ethereum
name: WalletRegistry
network: goerli
source:
abi: WalletRegistry
address: "0x0f0E2afF99A55B11026Fb270A05f04d37724dE86"
startBlock: 8364851
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- AuthorizationDecreaseApproved
abis:
- name: WalletRegistry
file: ./abis/WalletRegistry.json
- name: SortitionPool
file: ./abis/SortitionPool.json
eventHandlers:
- event: AuthorizationDecreaseRequested(indexed address,indexed
address,uint96,uint96,uint64)
handler: handleAuthorizationDecreaseRequested
- event: AuthorizationIncreased(indexed address,indexed address,uint96,uint96)
handler: handleAuthorizationIncreased
- event: DkgMaliciousResultSlashed(indexed bytes32,uint256,address)
handler: handleDkgMaliciousResultSlashed
- event: DkgResultApproved(indexed bytes32,indexed address)
handler: handleDkgResultApproved
- event: DkgResultChallenged(indexed bytes32,indexed address,string)
handler: handleDkgResultChallenged
- event: DkgResultSubmitted(indexed bytes32,indexed
uint256,(uint256,bytes,uint8[],bytes,uint256[],uint32[],bytes32))
handler: handleDkgResultSubmitted
- event: DkgTimedOut()
handler: handleDkgTimedOut
- event: DkgStarted(indexed uint256)
handler: handleDkgStarted
- event: DkgStateLocked()
handler: handleDkgStateLocked
- event: DkgSeedTimedOut()
handler: handleDkgSeedTimedOut
- event: InactivityClaimed(indexed bytes32,uint256,address)
handler: handleInactivityClaimed
- event: OperatorJoinedSortitionPool(indexed address,indexed address)
handler: handleOperatorJoinedSortitionPool
- event: OperatorRegistered(indexed address,indexed address)
handler: handleOperatorRegistered
- event: RewardsWithdrawn(indexed address,uint96)
handler: handleRewardsWithdrawn
- event: WalletOwnerUpdated(address)
handler: handleWalletOwnerUpdated
file: ./src/mappingWalletRegistry.ts