refactor: finish cursor → actionId rename in internal libs (#128)#140
Conversation
Follow-up to #139. Three internal lib functions still used cursor for data crossing the call boundary, which the issue's principle marks as the wrong name (cursor = local-variable name during walks; actionId = opaque handle as data). - LibTotalSupply.onAccountMigrated: fromCursor/toCursor → fromActionId/toActionId (mirrors the AccountMigrated event field names) - LibRebase.migratedBalance: cursor input → fromActionId, newCursor return → toActionId - LibReceiptRebase.migratedBalance: same shape as LibRebase Locals named cursor in StoxReceipt / StoxReceiptVault are correct per the convention (walk-position, not data) and stay. The accountIdCursor mapping in LibCorporateActionReceipt is storage tracking walk progress over time and stays. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThree related library functions ( ChangesMigration Position Tracking API Renaming
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
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)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
Summary
Follow-up to #139 finishing the rename in internal libs that were missed. PR #139 covered the public API surface; three internal-lib functions still used `cursor` for data crossing the call boundary, which #128's principle marks as the wrong name.
Renames:
Stays as cursor (correct per convention):
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit