-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
56 lines (56 loc) · 1.83 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: BorrowerOperations
network: goerli
source:
address: "0xaC8cEF2b2Dc99B3e700BB7dF110508d8E2036a90"
abi: BorrowerOperations
startBlock: 9808280
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- TroveCreated
- TroveUpdated
abis:
- name: BorrowerOperations
file: ./abis/BorrowerOperations.json
eventHandlers:
- event: TroveCreated(indexed address,indexed address,uint256)
handler: handleTroveCreated
- event: TroveUpdated(indexed address,indexed address,uint256,uint256,uint256,uint8)
handler: handleTroveUpdated
file: ./src/borrower-operations.ts
- kind: ethereum
name: TroveManager
network: goerli
source:
address: "0x579Cb57Cf46076fE66bf569775Cc703ba31C5799"
abi: TroveManager
startBlock: 9795860
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- TroveLiquidated
- TroveUpdated
- SystemSnapshotsUpdated
- TroveSnapshotsUpdated
abis:
- name: TroveManager
file: ./abis/TroveManager.json
eventHandlers:
- event: TroveLiquidated(indexed address,indexed address,uint256,uint256,uint8)
handler: handleTroveLiquidated
- event: TroveUpdated(indexed address,indexed address,uint256,uint256,uint256,uint8)
handler: handleTroveUpdated
- event: SystemSnapshotsUpdated(indexed address,uint256,uint256)
handler: handleSystemSnapshotsUpdated
- event: TroveSnapshotsUpdated(indexed address,uint256,uint256)
handler: handleTroveSnapshotsUpdated
file: ./src/trove-manager.ts