-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
31 lines (31 loc) · 971 Bytes
/
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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: UniswapV3Staker
network: mainnet
source:
address: "0x1F98431c8aD98523631AE4a59f267346ea31F984"
abi: UniswapV3Staker
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Incentive
abis:
- name: UniswapV3Staker
file: ./abis/UniswapV3Staker.json
- name: IncentiveId
file: ./abis/IncentiveId.json
- name: NFTPositionInfo
file: ./abis/NFTPositionInfo.json
- name: RewardMath
file: ./abis/RewardMath.json
eventHandlers:
- event: IncentiveCreated(indexed address,indexed address,uint256,uint256,address,uint256)
handler: handleIncentiveCreated
- event: IncentiveEnded(indexed bytes32,uint256)
handler: handleIncentiveEnded
file: ./src/mappings/mapping.ts