harb/kraiken-lib
2025-10-11 17:21:45 +00:00
..
src feat: surface stack versions in app footer 2025-10-11 17:21:45 +00:00
.gitignore Complete project rename from HARB/Harberg to KRAIKEN with KRK token symbol 2025-07-11 13:47:42 +02: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 tax rate, version and compose (#70) 2025-10-07 19:26:08 +02: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
jest.config.cjs tax rate, version and compose (#70) 2025-10-07 19:26:08 +02:00
package-lock.json improve web-app config 2025-10-11 10:55:49 +00:00
package.json tax rate, version and compose (#70) 2025-10-07 19:26:08 +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 improve web-app config 2025-10-11 10:55:49 +00: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);