Skip to content

[PART 7] test: custom token creation and cross-session transfer#7

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

[PART 7] test: custom token creation and cross-session transfer#7
andreabadesso merged 1 commit into
masterfrom
feat/tests-token-create-transfer

Conversation

@andreabadesso

Copy link
Copy Markdown
Contributor

Summary

  • create_custom_token and wait_token_balance helpers
  • Token creation test and cross-session token transfer test

Acceptance Criteria

  • create_custom_token creates a token with mint and melt authorities enabled
  • Token UID is correctly derived from the transaction hash
  • wait_token_balance polls token-specific balance (up to 60s)
  • test_create_token creates 1000 TST tokens and verifies balance
  • test_token_transfer creates 500 TFC, sends 200 to Bob, Bob sends 50 back
  • Final balances are exact: Alice=350, Bob=150
  • Bob is funded with HTR for transaction fees before sending tokens back

🤖 Generated with Claude Code

@andreabadesso andreabadesso changed the title test: custom token creation and cross-session transfer [PART 7] test: custom token creation and cross-session transfer Mar 31, 2026
@andreabadesso andreabadesso force-pushed the feat/tests-token-create-transfer branch from bf22e02 to 1dd6dc1 Compare March 31, 2026 13:23
@andreabadesso andreabadesso changed the base branch from master to feat/tests-fund-transfer March 31, 2026 13:23
@andreabadesso andreabadesso added the enhancement New feature or request label Mar 31, 2026
@andreabadesso andreabadesso self-assigned this Mar 31, 2026
@andreabadesso andreabadesso moved this from Todo to In Progress (Done) in Hathor Network Mar 31, 2026
Comment thread tests/integration.rs
// ============================================================================
// Token Tests
// ============================================================================

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just split it into a new file at this point?

@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-fund-transfer to master April 1, 2026 14:22
- create_custom_token and wait_token_balance helpers
- test_create_token: create token with mint/melt authorities, verify balance
- test_token_transfer: create token, send between sessions, send back

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@andreabadesso andreabadesso force-pushed the feat/tests-token-create-transfer branch from 1dd6dc1 to b466cc6 Compare April 1, 2026 14:25
@andreabadesso andreabadesso merged commit dd25a0c into master Apr 1, 2026
1 check failed
@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-token-create-transfer branch April 1, 2026 14:25
@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