- Renamed core contract from Harberg.sol to Kraiken.sol - Updated token symbol from HARB to KRK - Renamed TypeScript library from harb-lib to kraiken-lib - Updated all contract imports and references across smart contracts - Modified subgraph schema and source files for new naming - Updated transaction bot dependencies and service references - Fixed test files to use new contract and token names - Updated documentation in CLAUDE.md and README.md - Regenerated subgraph types and ABI files - Added new deployment script (DeployScript2.sol) All components compile successfully and tests pass. Smart contracts: ✅ Compilation and tests pass TypeScript library: ✅ Package renamed and configured Subgraph: ✅ Code generation and build successful Transaction bot: ✅ Dependencies updated 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| codegen.yml | ||
| jest.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| yarn.lock | ||
Test
yarn test
Import
yarn add harb-lib
then
import {bytesToUint256LittleEndian, uint256ToBytesLittleEndian} from 'harb-lib'
uint256ToBytesLittleEndian(3n);
get Snatch List
import { getSnatchList } from "../helpers";
getSnatchList(<list of positions, <amount of stake>, <new tax rate>);