Skip to content

feat(invoice-token): add account freeze controls - #319

Merged
TS-mfon merged 1 commit into
StellarState:devfrom
dotmantissa:feature/issue-105-account-freeze
Aug 25, 2026
Merged

feat(invoice-token): add account freeze controls#319
TS-mfon merged 1 commit into
StellarState:devfrom
dotmantissa:feature/issue-105-account-freeze

Conversation

@dotmantissa

@dotmantissa dotmantissa commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Description

I added admin controlled account freeze and unfreeze hooks to the invoice token contract. Frozen accounts are blocked from transfers, delegated transfers, burns, approvals, allowance extensions, and mint participation. The implementation stores frozen state persistently, emits freeze and unfreeze events, exposes a read only status query, and validates repeated state transitions.

Closes #105

Type of Change

  • Bug fix (non breaking change which fixes an issue)
  • New feature (non breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)
  • Documentation update
  • UI/UX improvement
  • Code refactoring
  • Test addition or update
  • Configuration change

Checklist

  • My code follows the code style of this project
  • I have performed a self review of my own code
  • I have commented my code, particularly in hard to understand areas
  • I have made corresponding changes to the documentation (not applicable to this contract only change)
  • My changes generate no new warnings in the affected package
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Testing

How to Test

  1. Run cargo fmt --package invoice-token -- --check.
  2. Run cargo test --package invoice-token.
  3. Run cargo clippy --package invoice-token --all-targets --all-features -- -D warnings and build the release WASM with cargo build --package invoice-token --release --target wasm32v1-none.

Test Coverage

  • Unit tests added/updated
  • Integration tests added/updated
  • E2E tests added/updated (if applicable)
  • Manual testing completed

Screenshots (if applicable)

Not applicable.

Additional Notes

The affected invoice-token package passes all scoped checks. Full workspace checks are currently blocked by pre-existing syntax and compilation errors in invoice-escrow and payment-distributor on upstream dev; those unrelated files are unchanged in this PR.

For Reviewers

  • Code quality and readability
  • Test coverage
  • Security implications
  • Performance impact
  • Breaking changes

@drips-wave

drips-wave Bot commented Aug 24, 2026

Copy link
Copy Markdown

@dotmantissa Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@dotmantissa
dotmantissa force-pushed the feature/issue-105-account-freeze branch from 952fd03 to 04dc02e Compare August 24, 2026 20:47
@TS-mfon
TS-mfon merged commit 271ab70 into StellarState:dev Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CONTRACTS] Invoice Token: Add Token Freeze/Unfreeze Account Restrict Hooks

2 participants