What: Add a function that returns the total tokens minted to a specific address.
Why: Analytics need per-address minting stats. Currently only total supply is tracked.
Scope: Add total_minted_to(address) function. Track minting per address in storage. Return total.
Acceptance criteria:
- Returns total minted to address
- Updated on each mint
- No performance impact
- Queryable
Technical context: contracts/learn-token/src/lib.rs:343-371 — mint function.
What: Add a function that returns the total tokens minted to a specific address.
Why: Analytics need per-address minting stats. Currently only total supply is tracked.
Scope: Add
total_minted_to(address)function. Track minting per address in storage. Return total.Acceptance criteria:
Technical context:
contracts/learn-token/src/lib.rs:343-371— mint function.