Remove dead mint accounting state#72
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
|
@coderabbitai review |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThis PR removes two unused mint-accounting state mappings and their accessor functions from ChangesDead Mint-Accounting State Removal
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
StreamCoreand drops the corresponding retrieval functions fromStreamCore/IStreamCore.P0-CORE-001fixed.Intentional API change
This removes two pre-beta external views that always returned zero because their backing mappings were never written and the current drop path has no accepted public-sale or allowlist quota semantics. Keeping them would make the ABI look more complete than the protocol actually is. Future quota/accounting work should add a fresh, documented API with tests instead of relying on these misleading counters.
Validation
forge fmt --check smart-contracts\StreamCore.sol smart-contracts\IStreamCore.sol test\StreamMintAccounting.t.solforge test --match-contract StreamMintAccountingTest -vvvpassed: 2 tests, 0 failedmake checkpassed: 176 tests, 0 failedpowershell -ExecutionPolicy Bypass -File scripts\check.ps1passed: 176 tests, 0 failedgit diff --checkP0-CORE-001,StreamMintAccounting,uninitialized-state,uninitialized_state, Slither count680, branchcodex/remove-dead-mint-accounting, and PR Fix dependency script encoding hashes #71 merge commit20bd9d9d1fa36b7142f3a81b9ab0c86060c9f943slither_exit=-1,total=680,high=6,medium=28,low=63,informational=577,optimization=6,uninitialized_state=0,uninitialized_local=10,weak_prng=2,encode_packed_collision=0Closes #13
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests