feat(wallet): implement Wallet Management Module#16
Merged
akargi merged 10 commits intoJul 20, 2026
Conversation
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a comprehensive Wallet Management Module for the Stellar network as described in the issue requirements.
Changes
New Module: src/modules/wallet/
entities/wallet.entity.ts - Wallet TypeORM entity linked to User, stores the Stellar public key, AES-256-GCM encrypted secret key (select: false), cached balance, sync timestamp, primary flag, status, and optional multi-sig configuration (threshold + cosigner array).
dto/create-wallet.dto.ts - DTO for wallet creation (optional label and primary flag).
dto/update-wallet.dto.ts - DTO for updating label, status, or primary flag.
dto/sign-transaction.dto.ts - DTO accepting a base64-encoded unsigned XDR envelope.
dto/multisig-config.dto.ts - DTO for configuring threshold and co-signer public keys.
wallet.service.ts - Core business logic:
wallet.controller.ts - REST controller (/wallets) with JWT guard, @currentuser decorator, full CRUD + balance sync, sign-transaction, public-key, and multisig endpoints.
wallet.module.ts - NestJS module wiring TypeORM, StellarModule, service and controller.
wallet.service.spec.ts - Unit tests covering create, findAll, findOne, syncBalance, remove, and configureMultisig with mock repository and service.
Updated
Acceptance Criteria Coverage
closes #7