fix(identity-service): remove WalletGeneratorService from app.module.ts

This commit is contained in:
hailin 2025-12-07 00:15:08 -08:00
parent 852073ae11
commit fcb949c799
2 changed files with 8 additions and 9 deletions

View File

@ -33,7 +33,9 @@
"Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" status)", "Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" status)",
"Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" commit -m \"$(cat <<''EOF''\nfix(mpc-service): change healthcheck from wget to curl\n\nDocker compose healthcheck was using wget which is not installed in the\nnode:20-slim image. Changed to use curl and corrected endpoint path.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>\nEOF\n)\")", "Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" commit -m \"$(cat <<''EOF''\nfix(mpc-service): change healthcheck from wget to curl\n\nDocker compose healthcheck was using wget which is not installed in the\nnode:20-slim image. Changed to use curl and corrected endpoint path.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>\nEOF\n)\")",
"Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" push)", "Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" push)",
"Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" show cf308ef --stat)" "Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" show cf308ef --stat)",
"Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" commit -m \"$(cat <<''EOF''\nrefactor: move mnemonic verification from identity-service to blockchain-service\n\n- Add /internal/verify-mnemonic API to blockchain-service\n- Add /internal/derive-from-mnemonic API to blockchain-service \n- Create MnemonicDerivationAdapter for BIP39 mnemonic address derivation\n- Create BlockchainClientService in identity-service to call blockchain-service\n- Remove WalletGeneratorService from identity-service\n- Update recover-by-mnemonic handler to use blockchain-service API\n\nThis enforces proper domain boundaries - all blockchain/crypto operations\nare now handled by blockchain-service.\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>\nEOF\n)\")",
"Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" commit -m \"fix(identity-service): remove WalletGeneratorService from app.module.ts\")"
], ],
"deny": [], "deny": [],
"ask": [] "ask": []

View File

@ -18,7 +18,7 @@ import { TokenService } from '@/application/services/token.service';
// Domain Services // Domain Services
import { import {
AccountSequenceGeneratorService, UserValidatorService, WalletGeneratorService, AccountSequenceGeneratorService, UserValidatorService,
} from '@/domain/services'; } from '@/domain/services';
import { USER_ACCOUNT_REPOSITORY } from '@/domain/repositories/user-account.repository.interface'; import { USER_ACCOUNT_REPOSITORY } from '@/domain/repositories/user-account.repository.interface';
import { MPC_KEY_SHARE_REPOSITORY } from '@/domain/repositories/mpc-key-share.repository.interface'; import { MPC_KEY_SHARE_REPOSITORY } from '@/domain/repositories/mpc-key-share.repository.interface';
@ -31,8 +31,8 @@ import { RedisService } from '@/infrastructure/redis/redis.service';
import { EventPublisherService } from '@/infrastructure/kafka/event-publisher.service'; import { EventPublisherService } from '@/infrastructure/kafka/event-publisher.service';
import { MpcEventConsumerService } from '@/infrastructure/kafka/mpc-event-consumer.service'; import { MpcEventConsumerService } from '@/infrastructure/kafka/mpc-event-consumer.service';
import { SmsService } from '@/infrastructure/external/sms/sms.service'; import { SmsService } from '@/infrastructure/external/sms/sms.service';
import { BlockchainClientService } from '@/infrastructure/external/blockchain/blockchain-client.service';
import { MpcClientService, MpcWalletService } from '@/infrastructure/external/mpc'; import { MpcClientService, MpcWalletService } from '@/infrastructure/external/mpc';
import { WalletGeneratorServiceImpl } from '@/infrastructure/external/blockchain/wallet-generator.service.impl';
// Shared // Shared
import { GlobalExceptionFilter, TransformInterceptor } from '@/shared/filters/global-exception.filter'; import { GlobalExceptionFilter, TransformInterceptor } from '@/shared/filters/global-exception.filter';
@ -42,6 +42,7 @@ import { JwtAuthGuard } from '@/shared/guards/jwt-auth.guard';
@Global() @Global()
@Module({ @Module({
imports: [ imports: [
ConfigModule,
HttpModule.register({ HttpModule.register({
timeout: 300000, timeout: 300000,
maxRedirects: 5, maxRedirects: 5,
@ -55,9 +56,7 @@ import { JwtAuthGuard } from '@/shared/guards/jwt-auth.guard';
SmsService, SmsService,
MpcClientService, MpcClientService,
MpcWalletService, MpcWalletService,
// WalletGeneratorService 抽象类由 WalletGeneratorServiceImpl 实现 BlockchainClientService,
WalletGeneratorServiceImpl,
{ provide: WalletGeneratorService, useExisting: WalletGeneratorServiceImpl },
{ provide: MPC_KEY_SHARE_REPOSITORY, useClass: MpcKeyShareRepositoryImpl }, { provide: MPC_KEY_SHARE_REPOSITORY, useClass: MpcKeyShareRepositoryImpl },
], ],
exports: [ exports: [
@ -68,7 +67,7 @@ import { JwtAuthGuard } from '@/shared/guards/jwt-auth.guard';
SmsService, SmsService,
MpcClientService, MpcClientService,
MpcWalletService, MpcWalletService,
WalletGeneratorService, BlockchainClientService,
MPC_KEY_SHARE_REPOSITORY, MPC_KEY_SHARE_REPOSITORY,
], ],
}) })
@ -81,13 +80,11 @@ export class InfrastructureModule {}
{ provide: USER_ACCOUNT_REPOSITORY, useClass: UserAccountRepositoryImpl }, { provide: USER_ACCOUNT_REPOSITORY, useClass: UserAccountRepositoryImpl },
AccountSequenceGeneratorService, AccountSequenceGeneratorService,
UserValidatorService, UserValidatorService,
// WalletGeneratorService 由 InfrastructureModule 提供
], ],
exports: [ exports: [
USER_ACCOUNT_REPOSITORY, USER_ACCOUNT_REPOSITORY,
AccountSequenceGeneratorService, AccountSequenceGeneratorService,
UserValidatorService, UserValidatorService,
// WalletGeneratorService 由 InfrastructureModule 导出
], ],
}) })
export class DomainModule {} export class DomainModule {}