No description
Replaces basic "service is up" checks with functional verification that tests can actually use the services. ## Changes ### New Health Checks - **RPC Proxy**: Verifies eth_call works and deployed contracts are accessible - **GraphQL**: Confirms Ponder has indexed data with non-zero stats - **Web App**: Validates endpoint accessibility ### Improvements - Clear error messages explain what failed and how to fix it - Checks verify actual functionality, not just HTTP 200 responses - Fails fast before tests run with cryptic errors ### Files - `tests/setup/health-checks.ts` - Core health check functions - `tests/setup/stack.ts` - Integration with waitForStackReady() - `tests/HEALTH_CHECKS.md` - Documentation and troubleshooting guide ## Error Message Example Before: ``` RPC health check failed with status 404 ``` After: ``` ❌ Stack health check failed Failed services: • RPC Proxy: RPC proxy returned HTTP 404 Expected 200, got 404. Check if Anvil is running and RPC_URL is correct. • GraphQL Indexer: GraphQL has no indexed data yet Ponder is running but has not indexed contract events. Troubleshooting: 1. Check stack logs: tail tests/.stack.log 2. Verify services are running: ./scripts/dev.sh status 3. Restart stack: ./scripts/dev.sh restart --full ``` ## Benefits - ✅ Tests fail fast with clear error messages - ✅ Catches configuration issues before tests run - ✅ Verifies services are actually usable, not just running resolves #61 Co-authored-by: johba <johba@harb.eth> Reviewed-on: https://codeberg.org/johba/harb/pulls/65 |
||
|---|---|---|
| .husky | ||
| containers | ||
| docs | ||
| kraiken-lib | ||
| landing | ||
| onchain | ||
| scripts | ||
| services | ||
| tests | ||
| web-app | ||
| .gitignore | ||
| .gitmodules | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| FINAL_SUMMARY.md | ||
| HARBERG.md | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| podman-compose.yml | ||
| README.md | ||
| TECHNICAL_APPENDIX.md | ||
| TEST_RESULTS.md | ||
| TESTING_SUMMARY.md | ||
$HRB is a gig to become successful in DeFi. It is a protocol that implements the fairest ponzi in the world.
This repository structures our approach and manages our collaboration to achieve this goal.
Project Milestones
The fairest ponzi in the world will be launched in 3 stages, each representing a more advanced version of the previous one.
- Harberg - a staking market and an speculative laverage platform.
- KrAIken - Harberg, but token issuance is governed by an automated liquidity manager.
- SoverAIgns - KrAIKen, but the liquidity manager is augmented by AI and deliveres outlandish performance
Project Values and Organization
- the core value and mantra of the project is: ship, ship, 🚢
- delivery is valued highest and goes over quality or communication
- if you see work, do it. most likely every-one but you will lose interest in the project, and you will deliver it by yourself. work this way, take responsibility for everything. document everything methodically in this repository, use .md files, commits, issues(feature request, support issue), and pull requests. if other people still follow this repository collaboration will emerge, and duplication of work will be avoided automatically.
- no structured communication outside of this repository is relevant for the success, nor will it be rewarded.
open questions
- multisig? keyholders?
- payout, shares?
Revenue Sources
- the tax paid by the stakers will be forwarded to the multisig
- the liquidity manager contract will collect all liquidity fees and forward them to the multisig
- at launch of each stage of the project the keyholders will invest a share of the multisig holdings and coordinate to sell at a favorable time. all profits from all sales are the multisigs profits.
Timeline
it would be great if we can launch stage 1 or even 2 for DevCon.
Kick-off Call Harberg
Agenda