Files
zeekayandHanzo Dev fbbe16d56a fix(manifest): network is lux, not a foreign white-label name
getSubgraphConfig() keys off dataSource.network() and only knows
'lux' (chainId 96369) — with any other value the Factory handler
throws "Unsupported network" on the first PoolCreated and the
deployment never indexes a single pool. The Lux config (V3 factory
0x80bBc7C4…, WLUX, LUSD/USDC/USDT stablecoins, the WLUX/LUSD price
pool) has been correct in chains.ts all along; only the manifest's
network label was wrong, so this subgraph could never run.

Also drops a white-label brand name that must never appear in a
luxfi repo.

Deployed as luxfi/amm-v3 on graph-node in lux-mainnet; indexes 27
live V3 pools with $3.0M TVL.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-26 18:59:33 -07:00

72 lines
2.1 KiB
YAML

specVersion: 0.0.4
description: Uniswap is a decentralized protocol for automated token exchange on Ethereum.
repository: https://github.com/luxfi/uniswap-v3-subgraph
schema:
file: ./schema.graphql
features:
- nonFatalErrors
dataSources:
- kind: ethereum/contract
name: Factory
network: lux
source:
address: "0x80bBc7C4C7a59C899D1B37BC14539A22D5830a84"
abi: Factory
startBlock: 1
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Pool
- Token
abis:
- name: Factory
file: ./abis/factory.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: Pool
file: ./abis/pool.json
eventHandlers:
- event: PoolCreated(indexed address,indexed address,indexed uint24,int24,address)
handler: handlePoolCreated
templates:
- kind: ethereum/contract
name: Pool
network: lux
source:
abi: Pool
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/pool/index.ts
entities:
- Pool
- Token
abis:
- name: Pool
file: ./abis/pool.json
- name: Factory
file: ./abis/factory.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Initialize(uint160,int24)
handler: handleInitialize
- event: Swap(indexed address,indexed address,int256,int256,uint160,uint128,int24)
handler: handleSwap
- event: Mint(address,indexed address,indexed int24,indexed
int24,uint128,uint256,uint256)
handler: handleMint
- event: Burn(indexed address,indexed int24,indexed int24,uint128,uint256,uint256)
handler: handleBurn
- event: Collect(indexed address,address,indexed int24,indexed
int24,uint128,uint128)
handler: handleCollect