-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
185 lines (185 loc) · 6.24 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
specVersion: 0.0.8
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Controller
network: base
source:
address: "0xf90ff0f7c8db52bf1bf869f74226ead125efa745"
startBlock: 1441078
abi: ControllerContract
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Vault
- Strategy
abis:
- name: ControllerContract
file: ./abis/harvest/Controller.json
- name: VaultContract
file: ./abis/VaultV2.json
- name: ERC20
file: ./abis/ERC20.json
- name: WeightedPool2TokensContract
file: ./abis/balancer/WeightedPool2Tokens.json
- name: BalancerVaultContract
file: ./abis/balancer/BalancerVault.json
- name: PotPoolContract
file: ./abis/harvest/PotPool.json
- name: VaultV2Contract
file: ./abis/VaultV2.json
- name: StrategyBaseContract
file: ./abis/StrategyBase.json
- name: PancakeFactoryContract
file: ./abis/baseswap/PancakeFactory.json
- name: PancakePairContract
file: ./abis/baseswap/PancakePair.json
- name: AedromeFactoryContract
file: ./abis/aerodrome/AerodromeFactory.json
- name: AedromePoolContract
file: ./abis/aerodrome/AerodromePool.json
- name: CurveVaultContract
file: ./abis/curve/CurveVault.json
- name: CurveMinterContract
file: ./abis/curve/CurveMinter.json
eventHandlers:
- event: SharePriceChangeLog(indexed address,indexed address,uint256,uint256,uint256)
handler: handleSharePriceChangeLog
blockHandlers:
- handler: handleBlock
filter:
kind: polling
every: 10000
file: ./src/ControllerListener.ts
templates:
- kind: ethereum/contract
name: VaultListener
network: base
source:
abi: VaultContract
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Vault
abis:
- name: VaultContract
file: ./abis/VaultV2.json
- name: ERC20
file: ./abis/ERC20.json
- name: WeightedPool2TokensContract
file: ./abis/balancer/WeightedPool2Tokens.json
- name: BalancerVaultContract
file: ./abis/balancer/BalancerVault.json
- name: PotPoolContract
file: ./abis/harvest/PotPool.json
- name: VaultV2Contract
file: ./abis/VaultV2.json
- name: StrategyBaseContract
file: ./abis/StrategyBase.json
- name: PancakeFactoryContract
file: ./abis/baseswap/PancakeFactory.json
- name: PancakePairContract
file: ./abis/baseswap/PancakePair.json
- name: AedromeFactoryContract
file: ./abis/aerodrome/AerodromeFactory.json
- name: AedromePoolContract
file: ./abis/aerodrome/AerodromePool.json
- name: CurveVaultContract
file: ./abis/curve/CurveVault.json
- name: CurveMinterContract
file: ./abis/curve/CurveMinter.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/VaultListener.ts
- kind: ethereum/contract
name: PotPoolListener
network: base
source:
abi: PotPoolContract
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Pool
abis:
- name: VaultContract
file: ./abis/VaultV2.json
- name: ERC20
file: ./abis/ERC20.json
- name: WeightedPool2TokensContract
file: ./abis/balancer/WeightedPool2Tokens.json
- name: BalancerVaultContract
file: ./abis/balancer/BalancerVault.json
- name: PotPoolContract
file: ./abis/harvest/PotPool.json
- name: VaultV2Contract
file: ./abis/VaultV2.json
- name: StrategyBaseContract
file: ./abis/StrategyBase.json
- name: PancakeFactoryContract
file: ./abis/baseswap/PancakeFactory.json
- name: PancakePairContract
file: ./abis/baseswap/PancakePair.json
- name: AedromeFactoryContract
file: ./abis/aerodrome/AerodromeFactory.json
- name: AedromePoolContract
file: ./abis/aerodrome/AerodromePool.json
- name: CurveVaultContract
file: ./abis/curve/CurveVault.json
- name: CurveMinterContract
file: ./abis/curve/CurveMinter.json
eventHandlers:
- event: RewardAdded(address,uint256)
handler: handleRewardAdded
- event: RewardPaid(indexed address,address,uint256)
handler: handleRewardPaid
file: ./src/PotPoolListener.ts
- kind: ethereum/contract
name: StrategyListener
network: base
source:
abi: StrategyBaseContract
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Strategy
abis:
- name: VaultContract
file: ./abis/VaultV2.json
- name: ERC20
file: ./abis/ERC20.json
- name: WeightedPool2TokensContract
file: ./abis/balancer/WeightedPool2Tokens.json
- name: BalancerVaultContract
file: ./abis/balancer/BalancerVault.json
- name: PotPoolContract
file: ./abis/harvest/PotPool.json
- name: VaultV2Contract
file: ./abis/VaultV2.json
- name: StrategyBaseContract
file: ./abis/StrategyBase.json
- name: PancakeFactoryContract
file: ./abis/baseswap/PancakeFactory.json
- name: PancakePairContract
file: ./abis/baseswap/PancakePair.json
- name: AedromeFactoryContract
file: ./abis/aerodrome/AerodromeFactory.json
- name: AedromePoolContract
file: ./abis/aerodrome/AerodromePool.json
- name: CurveVaultContract
file: ./abis/curve/CurveVault.json
- name: CurveMinterContract
file: ./abis/curve/CurveMinter.json
eventHandlers:
- event: ProfitLogInReward(indexed address,uint256,uint256,uint256)
handler: handleProfitLogInReward
file: ./src/StrategyListener.ts