openhands
|
a4a3a85fdc
|
fix: Ponder: fix mintNextHourProjected divisor, dead param, dead code (#308)
|
2026-02-27 05:47:51 +00:00 |
|
openhands
|
e49938bd0a
|
fix: Ponder: add test infrastructure + coverage for helpers (target 95%) (#287)
- Add vitest ^2 + @vitest/coverage-v8 ^2 as devDependencies
- Add `test` and `test:coverage` scripts to package.json
- Create vitest.config.ts with resolve.alias to mock ponder virtual modules
(ponder:schema, ponder:registry) and point kraiken-lib/version to source
- Add coverage/ to .gitignore
- Add vitest.config.ts to tsconfig.json include so eslint project-aware rules apply
- Create src/tests/__mocks__/ponder-schema.ts and ponder-registry.ts stubs
- Create src/tests/stats.test.ts — 48 tests covering ring buffer logic,
segment updates, hourly advancement, projections, ETH reserve snapshots,
all exported async helpers with mock Ponder contexts
- Create src/tests/version.test.ts — 14 tests covering isCompatibleVersion,
getVersionMismatchError, and validateContractVersion (compatible / mismatch /
error paths, existing-meta upsert path)
- Create src/tests/abi.test.ts — 6 tests covering validateAbi and
validateContractAbi
Result: 68 tests pass, 100% line/statement/function coverage on all helpers
(stats.ts, version.ts, abi.ts, logger.ts) — exceeds 95% target.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-02-25 22:29:57 +00:00 |
|
openhands
|
21ced03423
|
fix: LiveStats: remove floor price from landing, fix ETH reserve data pipeline, strip browser RPC (#196)
|
2026-02-23 21:58:08 +00:00 |
|
johba
|
1645865c5a
|
first integration tests (#64)
resolves #60
Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/64
|
2025-10-05 19:40:14 +02:00 |
|
johba
|
dc61771dfc
|
feat(ponder): Add strict ESLint + Prettier with pre-commit hooks (#52)
- Install eslint, @typescript-eslint plugins, prettier, husky, lint-staged
- Configure ESLint flat config with TypeScript parser
- Enforce: no-explicit-any (with exceptions), no-unused-vars, naming-convention, prefer-const, no-console
- Set style: 2-space indent, 140 char max-len, disable complexity rules
- Configure Prettier: single quotes, 140 width, trailing commas
- Setup husky pre-commit hook to auto-fix and format on commit
- Replace console.log/warn with context.logger.info/warn in handlers
- Remove console.log from ponder.config.ts (replaced with comment)
- Add npm scripts: lint, lint:fix, format, format:check
- All lint rules pass without warnings
resolvel #45
Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/52
|
2025-10-04 15:37:26 +02:00 |
|
johba
|
b4c829e4d6
|
fix/podman-postgres-integration (#37)
resolves #25
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/37
|
2025-10-01 20:26:49 +02:00 |
|
johba
|
76d84341de
|
feat: add ABI validation helpers for Ponder (#29)
resolves https://codeberg.org/johba/harb/issues/23
Co-authored-by: openhands <openhands@all-hands.dev>
Reviewed-on: https://codeberg.org/johba/harb/pulls/29
|
2025-09-30 20:02:43 +02:00 |
|
johba
|
36b7b429ef
|
move ponder
|
2025-09-23 20:29:51 +02:00 |
|