zeekay
e7e1a95cf8
docs: update comment reference node/vms/graphvm → chains/graphvm
2026-04-13 05:27:19 -07:00
zeekay
f0a5411f10
fix: cap GraphQL pagination to 1000 items per page
...
Prevents OOM from unbounded first:999999999 queries.
All 24 resolver pl() functions + engine.resolveBlocks capped via min(limit, 1000).
2026-04-13 03:11:36 -07:00
zeekay
cfb7f3ee6f
graph: add utxo + zk + mpc resolvers for full 15-chain coverage
...
graph had resolvers for 10 of 15 platform chains. This adds the three
missing ones:
- resolvers/utxo/: X-Chain (XVM) — UTXO, Asset, AssetCreateTx, UTXOBalance
- resolvers/zk/: Z-Chain (ZKVM) — ZKProof, Verifier, CircuitHash, ProofBatch, ZKSession
- resolvers/mpc/: M-Chain (MPC) — SigningSession, KeygenSession, SignerSet, Presignature, SignRequest
Registered in engine.go under "utxo", "zk"/"zchain", "mpc"/"mchain"
selectors and added to the "all" batch. Removed the duplicate
"zchain" alias from "privacy" (privacy is a cross-chain protocol, not
Z-Chain — Z-Chain is ZK proofs, now correctly wired to zk.Register).
Now graph supports the same 15 platform chains as indexer:
P, X, C, A, B, D, G, I, K, M, O, Q, R, T, Z.
2026-04-12 22:42:05 -07:00
zeekay
1c5f1f2568
feat: Liquidity Protocol + Liquid Protocol graph resolvers
...
Liquidity Protocol resolvers:
- CrossChainSwap, LimitOrder, Arbitrage
- OMAPool, OMASwap, PriceUpdate
- StrategyOrder, MarketMaker, BridgeTransfer
Liquid Protocol resolvers:
- LiquidFee, ValidatorReward, SlashingEvent
- DepositMint, YieldMint, WithdrawBurn
- BackingUpdate, VaultStrategy, YieldHarvest
Both registered in engine under 'liquidity', 'liquid-protocol', and 'all'.
2026-04-12 11:48:05 -07:00
zeekay
72147a0672
feat: 8 new graph resolvers — governance, DAO, treasury, liquid, DID, prediction, securities, derivatives (84 tests)
2026-04-12 11:34:18 -07:00
zeekay
6aeee65a92
Add CI/CD pipelines, unit tests, release workflow
...
CI:
- ci.yml: build, vet, unit tests, e2e (SQLite + in-memory), benchmarks
on ubuntu + macos matrix
- release.yml: cross-compile binaries (linux/darwin x amd64/arm64),
multi-platform Docker image to ghcr.io/luxfi/graph, GitHub Release
Tests:
- engine/engine_test.go: parser (fields, args, where filters, aliases,
depth, paren matching, limit clamping)
- indexer/indexer_test.go: hex parsing, uint256 decoding, topic address
extraction, event signature coverage
- storage/store_test.go: FilterResults (exact, gte, lt, empty, no-match),
sortResults (numeric, asc, string fallback), compareValues (numeric
strings, mixed types)
2026-04-11 14:25:57 -07:00
zeekay
de2e43e606
Initial commit: Lux Graph Engine
...
Single-binary GraphQL query layer replacing The Graph's Graph Node.
SQLite WAL + hanzoai/replicate S3 streaming + luxfi/age PQ encryption.
- 18 schemas: AMM V2/V3/V4, DEX, FHE, Platform, XChain, Bridge,
Privacy, Quantum, Key, AI, Identity, Oracle, Relay, ServiceNode,
Precompile, ERC20, ERC721
- WASM subgraph loader (uni-v2/v3/v4 build/ dirs)
- EVM indexer: eth_blockNumber + eth_getLogs + V2/V3/V4 event decoding
- Production hardened: rate limiter, query depth/field caps,
MaxBytesReader, structured logging, /ready, /metrics
- 32 e2e tests, 13 benchmarks, 775 qps @ 100 clients on SQLite
- Dockerfile (multi-stage CGO, non-root, healthcheck)
2026-04-11 13:47:05 -07:00