fix: migrate DID method from did:pkh:stellar to did:stellar - #44
Conversation
|
@Fran19-09 is attempting to deploy a commit to the ACTA Team on Vercel. A member of the Team first needs to authorize it. |
|
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 (6)
📝 WalkthroughWalkthroughThe PR migrates Stellar DID construction and display from ChangesStellar DID migration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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. Comment |
Closes #34
📌 Type of Change
📝 Changes Description
Renames the Stellar DID method from
did:pkh:stellartodid:stellaracross the entire codebase, as defined in the ACTA protocol docs.packages/acta/src/did.tsDID_PKH_STELLAR_PREFIX = 'did:pkh:stellar'→DID_STELLAR_PREFIX = 'did:stellar'didPkhStellar(network, address)→didStellar(network, address)(same signature)packages/acta/src/mock.tsdidStellar; all 7 fixture calls (issuerDid,holderDid) updatedapps/credit-history/src/session/session-provider.tsxdidStellar; call site at line 110 updated; JSDoc comment updatedapps/credit-history/src/app/page.tsxDID_STELLAR_PREFIX; badge render and vault card copy updatedapps/credit-history/src/types/index.tsissuerDidformat comment updatedapps/credit-history/src/components/wallet-button.tsxtruncateDidindex adjusted from 4→3 parts for the shorterdid:stellar:{network}:{address}format (4 segments vs old 5)Grep verification: zero
pkhmatches remain inapps/orpackages/(excludingnode_modules).📸 Evidence
No visual change — this is a data/identifier migration. The identity method badge on the home page now shows
did:stellarinstead ofdid:pkh:stellar.Pre-existing typecheck errors (26 in
developbefore this branch): unrelated to this PR — caused by missinglucide-reactin app deps and@acta-products/typesmodule resolution. None of my 6 changed files produce new errors.🌌 Comments
truncateDidinwallet-button.tsxwas adjusted: the old format had 5 colon-segments (did:pkh:stellar:{network}:{addr}), the new one has 4 (did:stellar:{network}:{addr}), so the guard and slice indices were updated accordingly.Thank you for contributing to ACTA! We hope you can continue contributing to this project.
Summary by CodeRabbit
did:stellarformat.