Skip to content

Feat/tokenization#838

Merged
yusuftomilola merged 6 commits into
DistinctCodes:mainfrom
ummarig:feat/tokenization
Jun 1, 2026
Merged

Feat/tokenization#838
yusuftomilola merged 6 commits into
DistinctCodes:mainfrom
ummarig:feat/tokenization

Conversation

@ummarig
Copy link
Copy Markdown
Contributor

@ummarig ummarig commented May 30, 2026

Completed

  • Added tokenization_tests.rs

    • Covers:
      • tokenize_asset() success and duplicate tokenization failure
      • mint_tokens() success and max-supply overflow failure
      • burn_tokens() success and insufficient-balance failure
      • transfer_tokens() success, insufficient-balance failure, and self-transfer prevention
      • get_token_balance() after mint and transfer flows
  • Registered the new module in mod.rs via:

    • #[path = "../../../opsce/src/tokenization_tests.rs"] mod tokenization_tests;
  • Enhanced tokenization.rs

    • Added self-transfer rejection
    • Added max-supply overflow guard in mint_tokens
  • Added new errors in error.rs

    • MaxSupplyExceeded
    • InvalidTokenTransfer

Validation

  • Editor diagnostics show no errors in:
    • error.rs
    • tokenization.rs
    • mod.rs
    • tokenization_tests.rs

Made changes.

Closes #821
Closes #814

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

@ummarig is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@ummarig 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

Copy link
Copy Markdown
Collaborator

@yusuftomilola yusuftomilola left a comment

Choose a reason for hiding this comment

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

thanks for your contribution

@yusuftomilola yusuftomilola merged commit cd9c488 into DistinctCodes:main Jun 1, 2026
1 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants