-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.template.yaml
45 lines (44 loc) · 1.62 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
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:
- Vault
- 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,uint112,uint112,bool,(uint128,uint96,uint32))
handler: handleObservationRecorded
- event: TotalSupplyObservationRecorded(indexed address,uint112,uint112,bool,(uint128,uint96,uint32))
handler: handleTotalSupplyObservationRecorded
file: ./src/mappings/twab-controller.ts
{{/twabController}}