Skip to content

feat: add total_supply tracking (#37)#156

Merged
Calebux merged 3 commits into
zintarh:mainfrom
soter-fashion:feature/issue-37-total-supply
Jun 29, 2026
Merged

feat: add total_supply tracking (#37)#156
Calebux merged 3 commits into
zintarh:mainfrom
soter-fashion:feature/issue-37-total-supply

Conversation

@soter-fashion

Copy link
Copy Markdown
Contributor
  • Add TotalSupply DataKey to storage_types (instance storage)
  • Increment TotalSupply on every mint_wrap
  • Decrement TotalSupply on every revoke_wrap
  • Add total_supply() getter returning global u64 count
  • Tests: starts at zero, increments on mint, decrements on revoke

closes #37

- Add TotalSupply DataKey to storage_types (instance storage)
- Increment TotalSupply on every mint_wrap
- Decrement TotalSupply on every revoke_wrap
- Add total_supply() getter returning global u64 count
- Tests: starts at zero, increments on mint, decrements on revoke
@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

@soter-fashion 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

@Calebux
Calebux merged commit e3d6fa4 into zintarh:main Jun 29, 2026
1 check failed
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.

Add total_supply function to track global mint count

2 participants