-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
88 lines (88 loc) · 2.81 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
specVersion: 0.0.2
repository: https://github.com/jdestephen/tcap-demo
schema:
file: ./schema.graphql
dataSources:
# Vaults
- kind: ethereum/contract
name: MATICVault
network: matic
source:
address: "0xEecF07643384C689C7AB804887ef2187cE75D5Ec"
abi: MATICVault
startBlock: 17372710
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Vault
abis:
- name: MATICVault
file: ./abis/MATICVault.json
eventHandlers:
- event: CollateralAdded(indexed address,indexed uint256,uint256)
handler: handleCollateralAdded
- event: TokensBurned(indexed address,indexed uint256,uint256)
handler: handleTokensBurned
- event: VaultCreated(indexed address,indexed uint256)
handler: handleVaultCreated
- event: VaultLiquidated(indexed uint256,indexed address,uint256,uint256)
handler: handleVaultLiquidated
- event: TokensMinted(indexed address,indexed uint256,uint256)
handler: handleTokensMinted
- event: CollateralRemoved(indexed address,indexed uint256,uint256)
handler: handleCollateralRemoved
file: ./src/maticvault.ts
- kind: ethereum/contract
name: MATICState
network: matic
source:
address: "0xEecF07643384C689C7AB804887ef2187cE75D5Ec"
abi: MATICVault
startBlock: 17372710
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- State
abis:
- name: MATICVault
file: ./abis/MATICVault.json
eventHandlers:
- event: NewBurnFee(indexed address,uint256)
handler: handleNewBurnFee
- event: NewLiquidationPenalty(indexed address,uint256)
handler: handleNewLiquidationPenalty
- event: NewRatio(indexed address,uint256)
handler: handleNewRatio
- event: NewTreasury(indexed address,address)
handler: handleNewTreasury
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: Paused(address)
handler: handlePaused
- event: Unpaused(address)
handler: handleUnpaused
file: ./src/state.ts
- kind: ethereum/contract
name: TCAP
network: matic
source:
address: "0x372226e23f02e3e7a9a7bf4bf48922a9915a598d"
abi: Oracle
startBlock: 17372710
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Oracle
abis:
- name: Oracle
file: ./abis/Oracle.json
eventHandlers:
- event: AnswerUpdated(indexed int256,indexed uint256,uint256)
handler: handleAnswerUpdated
file: ./src/oracle.ts