Skip to content

[PART 6] test: HTR fund and transfer e2e test#6

Merged
andreabadesso merged 1 commit into
masterfrom
feat/tests-fund-transfer
Apr 1, 2026
Merged

[PART 6] test: HTR fund and transfer e2e test#6
andreabadesso merged 1 commit into
masterfrom
feat/tests-fund-transfer

Conversation

@andreabadesso

Copy link
Copy Markdown
Contributor

Summary

  • Add tx helper functions (tx_hash, tx_success, format_htr, preflight_faucet, fund_and_wait)
  • Full e2e transfer test: faucet → Alice → Bob → Alice

Acceptance Criteria

  • preflight_faucet gracefully skips test if no fullnode or insufficient funds
  • fund_and_wait sends from faucet and polls until balance confirms (up to 60s)
  • test_fund_and_transfer funds Alice from faucet (5 HTR)
  • Alice sends 2 HTR to Bob across separate sessions
  • Bob sends 1 HTR back to Alice
  • Balances are verified at each step (Alice decreases, Bob increases, etc.)
  • Both sessions are cleaned up after test

🤖 Generated with Claude Code

@andreabadesso andreabadesso changed the title test: HTR fund and transfer e2e test [PART 6] test: HTR fund and transfer e2e test Mar 31, 2026
@andreabadesso andreabadesso force-pushed the feat/tests-fund-transfer branch from e7eff60 to 7cccc58 Compare March 31, 2026 13:23
@andreabadesso andreabadesso changed the base branch from master to feat/tests-api-key-enforcement March 31, 2026 13:23
@andreabadesso andreabadesso self-assigned this Mar 31, 2026
@andreabadesso andreabadesso added the enhancement New feature or request label Mar 31, 2026
@andreabadesso andreabadesso moved this from Todo to In Progress (Done) in Hathor Network Mar 31, 2026
@github-project-automation github-project-automation Bot moved this from In Progress (Done) to In Review (WIP) in Hathor Network Mar 31, 2026
@andreabadesso andreabadesso changed the base branch from feat/tests-api-key-enforcement to master April 1, 2026 14:22
Full end-to-end transfer test using hathor-forge faucet:
- Fund Alice from faucet
- Alice sends HTR to Bob (cross-session)
- Bob sends HTR back to Alice
- Verify balances at each step

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@andreabadesso andreabadesso force-pushed the feat/tests-fund-transfer branch from 7cccc58 to c64c1c1 Compare April 1, 2026 14:24
@andreabadesso andreabadesso merged commit e4d4165 into master Apr 1, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Review (WIP) to Waiting to be deployed in Hathor Network Apr 1, 2026
@andreabadesso andreabadesso deleted the feat/tests-fund-transfer branch April 1, 2026 14:24
@andreabadesso andreabadesso moved this from Waiting to be deployed to Done in Hathor Network Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants