forked from kelonye/uniswap-v3-staker-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph-rinkeby.yaml
39 lines (39 loc) · 1.31 KB
/
subgraph-rinkeby.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: rinkeby
source:
address: "0xc462aB5e66067153Bf1B368493E4744C1cA4BeC9"
abi: UniV3Staker
startBlock: 8894474
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