mirror of
https://github.com/luxfi/graph.git
synced 2026-09-24 00:26:07 +00:00
v1.2.49
Promoting the trade value to a column made the sum honest and, in doing so, showed what it was a sum of: 1,018,429 trades on this chain, of which the newest 50,000 had ever been priced. The other 95% were stored at zero — so the all-time total was $4,048 where the newest window alone was $4,159, and every day before that window was missing from every chart. A pass now reads both ends of what it has not seen. The head keeps arriving trades priced; the tail walks forward from a mark and covers the table a batch at a time until it meets the head, after which it costs a query that returns nothing. The mark records having LOOKED, not having priced: a trade whose tokens reach no stablecoin can never be priced, and a mark that waited for one would stop at it forever. It advances only once the values are on disk. Days are written whole. A day row is replaced by the pass that writes it, and both reads cut somewhere, so the day a cut lands in is dropped and comes back from the other side. A read that came back short of its limit was not cut and keeps everything — the case where the whole table fits in one window, which is every small chain. 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%