mirror of
https://github.com/luxfi/graph.git
synced 2026-09-24 00:26:07 +00:00
41880336993406c1d8e7e208c8a982061d20c384
Every already-indexed token had a symbol and no supply, so market cap and fully diluted value printed a dash however much the asset traded. The read existed; nothing ever reached it. The cold-start guard treated a real symbol as proof the row was complete, so a token seen once was never asked about again — and the row it adopted dropped the supply field on the way through. One predicate now says whether a row still has something to ask the chain: a real symbol AND a supply. One resolver answers it — store first, contract for the rest, memoised per address — and one merge folds a fresh read over what is already known, so a reverting call never erases a symbol and never erases the value locked, volume and price the valuation pass put on the same row. That last one was live: SeedToken is INSERT OR REPLACE and the write was built from the contract read alone. And one unit. The contract reports base units, the native coin's genesis figure is already whole, and both landed in the same field — a client that scales one and not the other is a valuation 10^18 out. The field is whole tokens now, converted where it is read, exactly: integer division and the remainder, because float64 gives up four orders of magnitude below a two-trillion-token supply. The backfill is what a start does rather than a flag to remember. Co-authored-by: Hanzo Dev <[email protected]>
Description
Single-binary GraphQL query layer for Lux blockchain — replaces The Graph's Graph Node
27 MiB
Languages
Go
99.9%
Dockerfile
0.1%