forked from BeanstalkFarms/Beanstalk-Subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
188 lines (188 loc) · 6.07 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
186
187
188
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Beanstalk
network: mainnet
source:
address: "0xC1E088fC1323b20BCBee9bd1B9fC9546db5624C5"
abi: Beanstalk
startBlock: 12974075
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- BeanClaim
- EtherClaim
- Harvest
- LPClaim
- DiamondCut
- PlotTransfer
- PodApproval
- Sow
- Commit
- Incentivization
- Pause
- Proposal
- Unpause
- Unvote
- Vote
- SeasonOfPlenty
- SeasonSnapshot
- Sunrise
- SupplyDecrease
- SupplyIncrease
- SupplyNeutral
- WeatherChange
- BeanDeposit
- BeanRemove
- BeanWithdraw
- LPDeposit
- LPRemove
- LPWithdraw
abis:
- name: Beanstalk
file: ./abis/Beanstalk.json
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
eventHandlers:
- event: BeanClaim(indexed address,uint32[],uint256)
handler: handleBeanClaim
- event: EtherClaim(indexed address,uint256)
handler: handleEtherClaim
- event: Harvest(indexed address,uint256[],uint256)
handler: handleHarvest
- event: LPClaim(indexed address,uint32[],uint256)
handler: handleLPClaim
- event: DiamondCut((address,uint8,bytes4[])[],address,bytes)
handler: handleDiamondCut
- event: PlotTransfer(indexed address,indexed address,indexed uint256,uint256)
handler: handlePlotTransfer
- event: PodApproval(indexed address,indexed address,uint256)
handler: handlePodApproval
- event: Sow(indexed address,uint256,uint256,uint256)
handler: handleSow
- event: Commit(indexed address,indexed uint32)
handler: handleCommit
- event: Incentivization(indexed address,uint256)
handler: handleIncentivization
- event: Pause(address,uint256)
handler: handlePause
- event: Proposal(indexed address,indexed uint32,indexed uint256,uint256)
handler: handleProposal
- event: Unpause(address,uint256,uint256)
handler: handleUnpause
- event: Unvote(indexed address,indexed uint32,uint256)
handler: handleUnvote
- event: Vote(indexed address,indexed uint32,uint256)
handler: handleVote
- event: SeasonOfPlenty(indexed uint256,uint256,uint256)
handler: handleSeasonOfPlenty
- event: SeasonSnapshot(indexed uint32,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleSeasonSnapshot
- event: Sunrise(indexed uint256)
handler: handleSunrise
- event: SupplyDecrease(indexed uint256,uint256,int256)
handler: handleSupplyDecrease
- event: SupplyIncrease(indexed uint256,uint256,uint256,uint256,int256)
handler: handleSupplyIncrease
- event: SupplyNeutral(indexed uint256,int256)
handler: handleSupplyNeutral
- event: WeatherChange(indexed uint256,uint256,int8)
handler: handleWeatherChange
- event: BeanDeposit(indexed address,uint256,uint256)
handler: handleBeanDeposit
- event: BeanRemove(indexed address,uint32[],uint256[],uint256)
handler: handleBeanRemove
- event: BeanWithdraw(indexed address,uint256,uint256)
handler: handleBeanWithdraw
- event: LPDeposit(indexed address,uint256,uint256,uint256)
handler: handleLPDeposit
- event: LPRemove(indexed address,uint32[],uint256[],uint256)
handler: handleLPRemove
- event: LPWithdraw(indexed address,uint256,uint256)
handler: handleLPWithdraw
file: ./src/mapping.ts
- kind: ethereum/contract
name: BeanUniswapV2Pair
network: mainnet
source:
address: "0x87898263B6C5BABe34b4ec53F22d98430b91e371"
abi: UniswapV2Pair
startBlock: 12974075
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Approval
- Burn
- Mint
- Swap
- Sync
- Transfer
abis:
- name: UniswapV2Pair
file: ./abis/UniswapV2Pair.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: Burn(indexed address,uint256,uint256,indexed address)
handler: handleBurn
- event: Mint(indexed address,uint256,uint256)
handler: handleMint
- event: Swap(indexed address,uint256,uint256,uint256,uint256,indexed address)
handler: handleSwap
- event: Sync(uint112,uint112)
handler: handleSync
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts
- kind: ethereum/contract
name: Bean
network: mainnet
source:
address: "0xDC59ac4FeFa32293A95889Dc396682858d52e5Db"
abi: Bean
startBlock: 12974075
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Approval
- Burn
- Mint
- Transfer
abis:
- name: Bean
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts
- kind: ethereum/contract
name: Bean
network: mainnet
source:
address: "0xDC59ac4FeFa32293A95889Dc396682858d52e5Db"
abi: Bean
startBlock: 12974075
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Approval
- Burn
- Mint
- Transfer
abis:
- name: Bean
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mapping.ts