-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
136 lines (136 loc) · 4.21 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Controller
network: mainnet
source:
address: "0xe366d53F07af38cE012aeA484747E40D513d000E"
abi: Controller
startBlock: 12848896
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- ChangeVerifiedToken
- Harvest
abis:
- name: Fund
file: ./abis/Fund.json
- name: Factory
file: ./abis/Factory.json
- name: Controller
file: ./abis/Controller.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: UniV3Pool
file: ./abis/UniV3Pool.json
- name: UniV3Factory
file: ./abis/UniV3Factory.json
eventHandlers:
- event: ChangeVerifiedToken(indexed address,bool)
handler: handleChangeVerifiedToken
- event: Harvest(indexed address,uint256,uint256)
handler: handleHarvest
- event: SetHarvestPath(indexed address,bytes)
handler: handleSetHarvestPath
- event: SetGovernance(indexed address)
handler: handleSetGovernance
- event: SetMaxHarvestSlippage(uint256)
handler: handleSetMaxHarvestSlippage
- event: SetPath(indexed address,indexed address,bytes)
handler: handleSetPath
callHandlers:
- function: init(address,address,address,uint24,int24,int24,uint256)
handler: handleInit
- function: add(address,uint256,uint256,uint256,bool)
handler: handleAdd
- function: sub(address,uint256,uint256,uint256)
handler: handleSub
- function: move(address,uint256,uint256,uint256,uint256)
handler: handleMove
blockHandlers:
- handler: handleBlock
file: ./src/mappings/controller.ts
- kind: ethereum/contract
name: Factory
network: mainnet
source:
address: "0xc2D232A140a5B308295d5F7F84f5Ec6f02d42fFC"
abi: Factory
startBlock: 12849564
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- FundCreated
abis:
- name: Fund
file: ./abis/Fund.json
- name: Factory
file: ./abis/Factory.json
- name: Controller
file: ./abis/Controller.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: UniV3Pool
file: ./abis/UniV3Pool.json
- name: UniV3Factory
file: ./abis/UniV3Factory.json
eventHandlers:
- event: FundCreated(indexed address,indexed address,indexed address)
handler: handleFundCreated
file: ./src/mappings/factory.ts
templates:
- kind: ethereum/contract
name: Fund
network: mainnet
source:
abi: Fund
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Approval
- Transfer
- Deposit
- Withdraw
abis:
- name: Fund
file: ./abis/Fund.json
- name: Factory
file: ./abis/Factory.json
- name: Controller
file: ./abis/Controller.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: UniV3Pool
file: ./abis/UniV3Pool.json
- name: UniV3Factory
file: ./abis/UniV3Factory.json
- name: StakingRewards
file: ./abis/StakingRewards.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Deposit(indexed address,uint256,uint256)
handler: handleDeposit
- event: Withdraw(indexed address,uint256,uint256)
handler: handleWithdraw
file: ./src/mappings/fund.ts