- Document new LiquidityManager events in kraiken-lib/src/version.ts per AGENTS.md pre-PR checklist item 6 (Kraiken VERSION unchanged; no ponder subscriber impact) - Add vm.expectEmit assertions to testSetFeeDestinationLocked_Reverts for the setup call that now emits FeeDestinationSet + FeeDestinationLocked Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| .lintstagedrc.json | ||
| .prettierignore | ||
| .prettierrc | ||
| AGENTS.md | ||
| codegen.yml | ||
| eslint.config.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vitest.config.ts | ||
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);