Files
zeekay 73eefae121 feat: add Lux and Zoo chain support to Uniswap V4 subgraph
- Add lux, lux-testnet, lux-devnet, zoo, zoo-testnet to networks.json
- Add chain IDs 96369/96368/96370/200200/200201
- Add SubgraphConfig for Lux/Zoo with precompile contract addresses
- Update dependencies
2026-03-11 12:09:01 -07:00

69 lines
2.2 KiB
YAML

specVersion: 0.0.4
description: Lux DEX v4 - Native decentralized exchange with precompile-based pool management.
repository: https://github.com/luxfi/uni-v4-subgraph
schema:
file: ./schema.graphql
features:
- nonFatalErrors
dataSources:
- source:
abi: PoolManager
address: "0x0000000000000000000000000000000000009010"
startBlock: 1
name: PoolManager
network: lux
kind: ethereum/contract
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/poolManager.mapping.ts
entities:
- Pool
- Token
abis:
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: PoolManager
file: ./abis/PoolManager.json
- name: AggregatorHook
file: ./abis/AggregatorHook.json
eventHandlers:
- event: Initialize(indexed bytes32,indexed address,indexed
address,uint24,int24,address,uint160,int24)
handler: handleInitialize
- event: ModifyLiquidity(indexed bytes32,indexed
address,int24,int24,int256,bytes32)
handler: handleModifyLiquidity
- event: Swap(indexed bytes32,indexed
address,int128,int128,uint160,uint128,int24,uint24)
handler: handleSwap
- source:
abi: PositionManager
address: "0x0000000000000000000000000000000000009011"
startBlock: 1
name: PositionManager
network: lux
kind: ethereum/contract
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/positionManager.mapping.ts
entities:
- Position
abis:
- name: PositionManager
file: ./abis/PositionManager.json
eventHandlers:
- event: Subscription(indexed uint256,indexed address)
handler: handleSubscription
- event: Unsubscription(indexed uint256,indexed address)
handler: handleUnsubscription
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer