harb/kraiken-lib
johba a29ca1a26a Harden kraiken-lib watch loop and confirm host-built dist propagation (#38)
- expand scripts/watch-kraiken-lib.sh to watch atomic rename events, validate required tools, and gracefully restart only the containers that mount kraiken-
  lib/dist
  - verify the host-built dist is mounted read-only inside each service and observe live rebuild + restart behavior under inotify
  - run the local podman stack, exercise the watcher by editing kraiken-lib/src/helpers.ts, and confirm GraphQL responds through Caddy after restarts

resolves #33

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/38
2025-10-02 14:33:59 +02:00
..
src fix/podman-postgres-integration (#37) 2025-10-01 20:26:49 +02:00
.gitignore Complete project rename from HARB/Harberg to KRAIKEN with KRK token symbol 2025-07-11 13:47:42 +02:00
AGENTS.md Harden kraiken-lib watch loop and confirm host-built dist propagation (#38) 2025-10-02 14:33:59 +02:00
codegen.yml added web and split CLAUDs 2025-07-24 16:08:17 +02:00
jest.config.js Complete project rename from HARB/Harberg to KRAIKEN with KRK token symbol 2025-07-11 13:47:42 +02:00
package-lock.json fix/podman-postgres-integration (#37) 2025-10-01 20:26:49 +02:00
package.json fix/podman-postgres-integration (#37) 2025-10-01 20:26:49 +02:00
README.md more logic to lib 2025-09-23 16:57:49 +02:00
tsconfig.json fix/podman-postgres-integration (#37) 2025-10-01 20:26:49 +02:00
yarn.lock feat: add ABI validation helpers for Ponder (#29) 2025-09-30 20:02:43 +02:00

Test

yarn test

Import

yarn add kraiken-lib

then

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

uint256ToBytesLittleEndian(3n);

get Snatch List

import { getSnatchList } from "kraiken-lib";

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