harb/kraiken-lib
2025-10-01 14:43:55 +02:00
..
src addresses issue 27 2025-10-01 14:43:55 +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 fix agent 2025-09-24 09:57:20 +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 feat: add ABI validation helpers for Ponder (#29) 2025-09-30 20:02:43 +02:00
package.json addresses issue 27 2025-10-01 14:43:55 +02:00
README.md more logic to lib 2025-09-23 16:57:49 +02:00
tsconfig.json feat: add ABI validation helpers for Ponder (#29) 2025-09-30 20:02:43 +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);