forked from revert-finance/uniswap-v3-staker-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
40 lines (40 loc) · 1.22 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
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: UniV3Staker
network: aioz-testnet
source:
abi: UniV3Staker
address: "0x23A05e25B7CD3aF612495147280195A7b252124a"
startBlock: 13043185
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Incentive
- OwnerStaker
- OwnerStakerReward
- IncentivePosition
- Position
- Stake
- Unstake
- Claim
abis:
- name: UniV3Staker
file: ./abis/UniV3Staker.json
eventHandlers:
- event: IncentiveCreated(indexed address,indexed
address,uint256,uint256,address,uint256)
handler: handleIncentiveCreated
- event: IncentiveEnded(indexed bytes32,uint256)
handler: handleIncentiveEnded
- event: TokenStaked(indexed uint256,indexed bytes32,uint128)
handler: handleTokenStaked
- event: TokenUnstaked(indexed uint256,indexed bytes32)
handler: handleTokenUnstaked
- event: RewardClaimed(indexed address,uint256)
handler: handleRewardClaimed
file: ./src/uni-v3-staker-mapping.ts