forked from kelonye/uniswap-v3-staker-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph-mainnet.yaml
39 lines (39 loc) · 1.34 KB
/
subgraph-mainnet.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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: UniV3Staker
network: mainnet
source:
address: "0x1f98407aaB862CdDeF78Ed252D6f557aA5b0f00d"
abi: UniV3Staker
startBlock: 13555508 # when first incentive was created
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- DepositTransferred
- IncentiveCreated
- IncentiveEnded
- RewardClaimed
- TokenStaked
- TokenUnstaked
abis:
- name: UniV3Staker
file: ./abis/UniV3Staker.json
eventHandlers:
- event: DepositTransferred(indexed uint256,indexed address,indexed address)
handler: handleDepositTransferred
- event: IncentiveCreated(indexed address,indexed address,uint256,uint256,address,uint256)
handler: handleIncentiveCreated
- event: IncentiveEnded(indexed bytes32,uint256)
handler: handleIncentiveEnded
- event: RewardClaimed(indexed address,uint256)
handler: handleRewardClaimed
- event: TokenStaked(indexed uint256,indexed bytes32,uint128)
handler: handleTokenStaked
- event: TokenUnstaked(indexed uint256,indexed bytes32)
handler: handleTokenUnstaked
file: ./src/uni-v3-staker-mapping.ts