Skip to content

Comments

feat(types): add StellarPublicKey type and update wallet fields#276

Merged
davedumto merged 1 commit intoStreamFi-x:devfrom
akintewe:issue-241-stellar-address-types
Feb 25, 2026
Merged

feat(types): add StellarPublicKey type and update wallet fields#276
davedumto merged 1 commit intoStreamFi-x:devfrom
akintewe:issue-241-stellar-address-types

Conversation

@akintewe
Copy link
Contributor

Summary

Closes #241

This PR updates all wallet-related TypeScript type definitions across the types/ directory to reflect the migration from StarkNet hex addresses to Stellar public keys.

Changes

types/user.ts

  • Added and exported StellarPublicKey type alias (string) with JSDoc documenting the Stellar format (56-character Base32 string starting with G)
  • Updated User.wallet, UserRegistrationInput.wallet, and UserUpdateInput.wallet from string to StellarPublicKey with inline JSDoc comments

types/settings/profile.ts

  • Imported StellarPublicKey from @/types/user
  • Updated FormState.wallet from string to StellarPublicKey with JSDoc comment

types/chat.ts

  • Imported StellarPublicKey from @/types/user
  • Updated ChatMessageAPI.user.wallet, ChatMessage.wallet, and SendChatMessagePayload.wallet from string to StellarPublicKey with JSDoc comments

types/explore/, types/landing-page/

  • Reviewed — no wallet-related fields found, no changes needed

Acceptance Criteria

  • StellarPublicKey type alias created and exported from types/user.ts
  • User.wallet typed as StellarPublicKey with JSDoc
  • UserRegistrationInput.wallet typed as StellarPublicKey
  • UserUpdateInput.wallet typed as StellarPublicKey
  • No references to StarkNet address format (0x, hex) in any type definitions
  • All wallet-related types across types/ directory consistently documented
  • npm run type-check passes — dependencies not installed in this environment; please verify locally with npm install && npm run type-check

Introduces a StellarPublicKey branded alias (56-char Base32, starts with 'G')
and applies it to all wallet fields across User, UserRegistrationInput,
UserUpdateInput, FormState, and chat interfaces, replacing the previous
plain string type with inline JSDoc documentation.
@vercel
Copy link

vercel bot commented Feb 23, 2026

@akintewe is attempting to deploy a commit to the david's projects Team on Vercel.

A member of the Team first needs to authorize it.

@davedumto
Copy link
Contributor

Loom video needed @akintewe

@akintewe
Copy link
Contributor Author

Loom video needed @akintewe

ok ill send shortly

@akintewe
Copy link
Contributor Author

here is the screen recording. @davedumto

Screen.Recording.2026-02-25.at.8.57.20.AM.mov

@davedumto davedumto merged commit b8eb2d4 into StreamFi-x:dev Feb 25, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update User type definitions for Stellar addresses

2 participants