harb/kraiken-lib
Agent 47a02cab92 chore: gardener housekeeping 2026-04-05
AGENTS.md watermarks refreshed to HEAD (62ba6f2).

Content updates:
- root AGENTS.md: added Docker/LXD notes (apparmor=unconfined, umami port 3001),
  viem v2 slot0 array pattern to Key Patterns
- services/ponder/AGENTS.md: documented LM_ADDRESS, POOL_ADDRESS, and
  MINIMUM_BLOCKS_FOR_RINGBUFFER env vars; added zero-stats troubleshooting note
- web-app/AGENTS.md: added viem v2 slot0 array compat section

Grooming: no open issues.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 18:04:27 +00:00
..
src fix: address review feedback for #958 2026-03-18 22:06:13 +00:00
.gitignore fix: kraiken-lib: fix broken tests + raise coverage to 95% (#286) 2026-02-26 01:09:55 +00:00
.lintstagedrc.json tax rate, version and compose (#70) 2025-10-07 19:26:08 +02:00
.prettierignore tax rate, version and compose (#70) 2025-10-07 19:26:08 +02:00
.prettierrc lint/lib (#49) 2025-10-03 11:57:01 +02:00
AGENTS.md chore: gardener housekeeping 2026-04-05 2026-04-05 18:04:27 +00:00
codegen.yml health checks (#39) 2025-10-02 14:37:59 +02:00
eslint.config.js tax rate, version and compose (#70) 2025-10-07 19:26:08 +02:00
package-lock.json fix: txnBot has zero test coverage after deleting recenterAccess.test.ts (#919) 2026-03-17 19:35:13 +00:00
package.json fix: Dual package managers: both package-lock.json and yarn.lock tracked (#343) 2026-02-28 10:51:59 +00:00
README.md refactor: migrate kraiken-lib to explicit subpath imports (BREAKING CHANGE) (#89) 2025-11-20 18:54:53 +01:00
tsconfig.json fix/podman-postgres-integration (#37) 2025-10-01 20:26:49 +02:00
vitest.config.ts fix: kraiken-lib: fix broken tests + raise coverage to 95% (#286) 2026-02-26 01:09:55 +00:00

Test

yarn test

Import

yarn add kraiken-lib

then

import { bytesToUint256LittleEndian, uint256ToBytesLittleEndian } from "kraiken-lib/subgraph";

uint256ToBytesLittleEndian(3n);

get Snatch List

import { getSnatchList } from "kraiken-lib/snatch";

const positionIds = getSnatchList(positions, neededShares, maxTaxRateDecimal, stakeTotalSupply);