This repo is archived. New github repository is used for staking data.
Fork of vbstreetz staker subgraph repository.
Purpose: handling Uniswap V3 staking events and displaying staking data in DAPPS.
Main differences from the forked repository:
- Network: switched to mumbai/goerli testnets.
- Schema update:
- Positions: (mapped using Position view. Mapping logic referenced from: Uniswap V3 and applied in nft-positions-manager-mapping.ts).
Added fields:- token0
- token1
- fee
- Incentives: added array to the positions schema. (There can be more than 1 incentive per position).
- Positions: (mapped using Position view. Mapping logic referenced from: Uniswap V3 and applied in nft-positions-manager-mapping.ts).
- Handle unstaked (but not withdrawn) tokens.
- Install packages
- Update
package.json
to:- Match the created subgraphs;
- Edit
deploy:<<network>>
command with access keys and created subgraph name.
- Update
Makefile
to match the created subgraphs. - Deploy e.g. to polygon testnet with
make mumbai
- Visit the subgraphs and verify no errors in indexing.
MIT