Skip to content

[PART 9] test: token full lifecycle and nano contract tests#9

Merged
andreabadesso merged 1 commit into
masterfrom
feat/tests-lifecycle-nano-contracts
Apr 1, 2026
Merged

[PART 9] test: token full lifecycle and nano contract tests#9
andreabadesso merged 1 commit into
masterfrom
feat/tests-lifecycle-nano-contracts

Conversation

@andreabadesso

Copy link
Copy Markdown
Contributor

Summary

  • Full token lifecycle test (create → mint → transfer → melt in one flow)
  • Nano contract lifecycle test (publish blueprint → create NC → deposit → query state)

Acceptance Criteria

  • test_token_full_lifecycle executes create(200) → mint(+300) → transfer(150 to Bob) → melt(100), verifies Alice=250, Bob=150
  • test_nano_contract_lifecycle publishes a Vault blueprint with @export decorator
  • Blueprint confirmation is awaited before creating the nano contract
  • Nano contract is created with initialize(owner) call
  • HTR deposit (100 cents) into the nano contract succeeds
  • Nano contract state is queryable from fullnode (owner field, balances)
  • Vault blueprint uses correct Hathor Python syntax (from hathor import ...)

🤖 Generated with Claude Code

@andreabadesso andreabadesso changed the title test: token full lifecycle and nano contract tests [PART 9] test: token full lifecycle and nano contract tests Mar 31, 2026
@andreabadesso andreabadesso force-pushed the feat/tests-lifecycle-nano-contracts branch from c674eba to 41b0f75 Compare March 31, 2026 13:23
@andreabadesso andreabadesso changed the base branch from master to feat/tests-token-mint-melt March 31, 2026 13:24
@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
Comment on lines +1288 to +1291
// ============================================================================
// Nano Contract 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.

Same here, we can use more than one file for the integration tests.

@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-token-mint-melt to master April 1, 2026 14:22
- test_token_full_lifecycle: create, mint, transfer, melt in single flow
- test_nano_contract_lifecycle: publish blueprint, create NC, deposit, query state

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@andreabadesso andreabadesso force-pushed the feat/tests-lifecycle-nano-contracts branch from 41b0f75 to 58d91c3 Compare April 1, 2026 14:25
@andreabadesso andreabadesso merged commit 6a02289 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-lifecycle-nano-contracts 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