-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
119 lines (119 loc) · 3.86 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Configurator
network: scroll
source:
abi: Configurator
address: "0xECAB0bEEa3e5DEa0c35d3E69468EAC20098032D7"
startBlock: 3397679
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities: []
abis:
- name: Configurator
file: ./abis/Configurator.json
eventHandlers:
- event: Upgraded(indexed address)
handler: handleUpgraded
receipt: true
- event: SetFactory(indexed address,indexed address,indexed address)
handler: handleSetFactory
receipt: true
file: ./src/mappings/configurator.ts
- kind: ethereum
name: CometRewards
network: scroll
source:
abi: CometRewardsV2
address: "0x70167D30964cbFDc315ECAe02441Af747bE0c5Ee"
startBlock: 3397682
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities: []
abis:
- name: Comet
file: ./abis/Comet.json
- name: Configurator
file: ./abis/Configurator.json
- name: Erc20
file: ./abis/Erc20.json
- name: CometRewardsV1
file: ./abis/CometRewardsV1.json
- name: CometRewardsV2
file: ./abis/CometRewardsV2.json
- name: ChainlinkPriceFeed
file: ./abis/ChainlinkPriceFeed.json
eventHandlers:
- event: RewardClaimed(indexed address,indexed address,indexed address,uint256)
handler: handleRewardClaimed
receipt: true
file: ./src/mappings/cometRewards.ts
templates:
- kind: ethereum
name: Comet
network: scroll
source:
abi: Comet
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities: []
abis:
- name: Comet
file: ./abis/Comet.json
- name: Configurator
file: ./abis/Configurator.json
- name: Erc20
file: ./abis/Erc20.json
- name: CometRewardsV1
file: ./abis/CometRewardsV1.json
- name: CometRewardsV2
file: ./abis/CometRewardsV2.json
- name: ChainlinkPriceFeed
file: ./abis/ChainlinkPriceFeed.json
eventHandlers:
- event: Upgraded(indexed address)
handler: handleUpgraded
receipt: true
- event: Supply(indexed address,indexed address,uint256)
handler: handleSupply
receipt: true
- event: Withdraw(indexed address,indexed address,uint256)
handler: handleWithdraw
receipt: true
- event: AbsorbDebt(indexed address,indexed address,uint256,uint256)
handler: handleAbsorbDebt
receipt: true
- event: SupplyCollateral(indexed address,indexed address,indexed address,uint256)
handler: handleSupplyCollateral
receipt: true
- event: WithdrawCollateral(indexed address,indexed address,indexed
address,uint256)
handler: handleWithdrawCollateral
receipt: true
- event: TransferCollateral(indexed address,indexed address,indexed
address,uint256)
handler: handleTransferCollateral
receipt: true
- event: AbsorbCollateral(indexed address,indexed address,indexed
address,uint256,uint256)
handler: handleAbsorbCollateral
receipt: true
- event: BuyCollateral(indexed address,indexed address,uint256,uint256)
handler: handleBuyCollateral
receipt: true
- event: WithdrawReserves(indexed address,uint256)
handler: handleWithdrawReserves
receipt: true
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
receipt: true
file: ./src/mappings/comet.ts