zeekay
3c7506a19b
chore: sync working tree
...
Commits 2 outstanding change(s) that were sitting uncommitted.
No build artifacts and no secrets in the changeset (both checked).
2026-07-26 10:14:04 -07:00
Hanzo AI
d1759dd8b5
go: 1.26.3 → 1.26.4 (security: crypto/x509, mime, net/textproto)
2026-06-06 22:06:12 -07:00
Hanzo AI
6bae0bd1c9
go.mod: bump go directive to 1.26.3 (security advisory)
2026-05-12 20:55:00 -07:00
Hanzo Dev
c7436768c8
chore: sync local changes
2026-03-26 22:47:13 -07:00
Hanzo Dev
647262cb63
chore: bump Go 1.26.0 → 1.26.1
...
Fixes 5 stdlib CVEs (html/template, os, net/url, crypto/x509 x2).
2026-03-12 01:09:17 -07:00
Hanzo Dev
7db778821a
chore: update Go module dependencies
2026-03-03 22:39:12 -08:00
Zach Kelling
f80474aedf
chore: sync dependencies and format code
2026-02-04 15:43:42 -08:00
Zach Kelling
a2c22dbba7
chore: remove local replace directives
2026-01-08 23:44:14 -08:00
Zach Kelling
356605c2c1
chore: update go.mod/sum
2026-01-04 19:29:50 -08:00
Zach Kelling
8edeed68cd
safe: add DEX math functions for DRY consolidation
...
Added functions from node/vms/dexvm/math:
- Div64: safe division with error on zero
- MulBig: multiply uint64s returning big.Int
- MulDiv64: (a * b) / c without overflow
- MulDivRoundUp64: ceiling division variant
- BigMulDiv: big.Int multiplication+division
- BigMulDivRoundUp: big.Int ceiling variant
- Clamp: generic ordered type clamping
Also added common big.Int values (bigZero, bigOne, maxUint64Big)
for performance in division operations.
2026-01-03 18:53:26 -08:00
Zach Kelling
fd27f2ecb0
Reorganize math package into subpackages
...
- Create math/big for big.Int utilities (HexOrDecimal256, U256, parsing)
- Create math/safe for overflow-safe arithmetic (SafeAdd, SafeMul, etc.)
- Move averager files to root package level
- Add re-exports in root package for backwards compatibility
- Update README with new package structure documentation
- Remove old math/meter directory (consolidated elsewhere)
- Remove redundant math/ subdirectory structure
2026-01-03 18:22:33 -08:00