feat(sdk-coin-sol): add SPL getTokenType and SolCoin programId guardrails#8904
Conversation
…ails Ticket: CHALO-506
|
@claude please review |
|
Claude finished @abhijeet8986's task —— View job Code Review for SPL Token SupportTasks:
✅ Overall Assessment: LGTM with Minor SuggestionsThis PR successfully implements the required prerequisites for SOL single-asset consolidation. The changes are minimal, focused, and well-tested. 📋 Summary of Changes
🔍 Detailed ReviewImplementation Quality: ✅ Excellent
Test Coverage: ✅ Comprehensive
Code Consistency: ✅ Good
🎯 Specific Observations✅ Strengths
💡 Minor Suggestions
🔄 Comparison with Similar ImplementationsAfter reviewing the codebase, I found that:
✅ ConclusionThis PR successfully implements the M1 prerequisites for SOL single-asset consolidation. The code is:
The implementation correctly provides the Recommendation: ✅ APPROVE 🔗 Job run: https://github.com/BitGo/BitGoJS/actions/runs/XXXXXX |
Ticket: CHALO-506
Description
M1 BitGoJS prerequisites for SOL single-asset consolidation (Phase 1). Wallet-platform will gate behavior behind wallet-platform_sol-consolidation_single-asset-enable; this PR does not change consolidation runtime behavior in WP.
Summary
Type of change
How Has This Been Tested?
Unit tests added in modules/sdk-coin-sol/test/unit/solToken.ts:
getTokenType() returns 'SPL' for mainnet (sol:spx) and testnet (tsol:usdc) via existing TestBitGo / bitgo.coin() setup
Unit test added in modules/statics/test/unit/coins.ts:
All SolCoin entries have programId ∈ { TokenProgramId, Token2022ProgramId }