fix(identity-service): remove WalletGeneratorService from app.module.ts
This commit is contained in:
parent
852073ae11
commit
fcb949c799
|
|
@ -33,7 +33,9 @@
|
|||
"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\" 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": [],
|
||||
"ask": []
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import { TokenService } from '@/application/services/token.service';
|
|||
|
||||
// Domain Services
|
||||
import {
|
||||
AccountSequenceGeneratorService, UserValidatorService, WalletGeneratorService,
|
||||
AccountSequenceGeneratorService, UserValidatorService,
|
||||
} from '@/domain/services';
|
||||
import { USER_ACCOUNT_REPOSITORY } from '@/domain/repositories/user-account.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 { MpcEventConsumerService } from '@/infrastructure/kafka/mpc-event-consumer.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 { WalletGeneratorServiceImpl } from '@/infrastructure/external/blockchain/wallet-generator.service.impl';
|
||||
|
||||
// Shared
|
||||
import { GlobalExceptionFilter, TransformInterceptor } from '@/shared/filters/global-exception.filter';
|
||||
|
|
@ -42,6 +42,7 @@ import { JwtAuthGuard } from '@/shared/guards/jwt-auth.guard';
|
|||
@Global()
|
||||
@Module({
|
||||
imports: [
|
||||
ConfigModule,
|
||||
HttpModule.register({
|
||||
timeout: 300000,
|
||||
maxRedirects: 5,
|
||||
|
|
@ -55,9 +56,7 @@ import { JwtAuthGuard } from '@/shared/guards/jwt-auth.guard';
|
|||
SmsService,
|
||||
MpcClientService,
|
||||
MpcWalletService,
|
||||
// WalletGeneratorService 抽象类由 WalletGeneratorServiceImpl 实现
|
||||
WalletGeneratorServiceImpl,
|
||||
{ provide: WalletGeneratorService, useExisting: WalletGeneratorServiceImpl },
|
||||
BlockchainClientService,
|
||||
{ provide: MPC_KEY_SHARE_REPOSITORY, useClass: MpcKeyShareRepositoryImpl },
|
||||
],
|
||||
exports: [
|
||||
|
|
@ -68,7 +67,7 @@ import { JwtAuthGuard } from '@/shared/guards/jwt-auth.guard';
|
|||
SmsService,
|
||||
MpcClientService,
|
||||
MpcWalletService,
|
||||
WalletGeneratorService,
|
||||
BlockchainClientService,
|
||||
MPC_KEY_SHARE_REPOSITORY,
|
||||
],
|
||||
})
|
||||
|
|
@ -81,13 +80,11 @@ export class InfrastructureModule {}
|
|||
{ provide: USER_ACCOUNT_REPOSITORY, useClass: UserAccountRepositoryImpl },
|
||||
AccountSequenceGeneratorService,
|
||||
UserValidatorService,
|
||||
// WalletGeneratorService 由 InfrastructureModule 提供
|
||||
],
|
||||
exports: [
|
||||
USER_ACCOUNT_REPOSITORY,
|
||||
AccountSequenceGeneratorService,
|
||||
UserValidatorService,
|
||||
// WalletGeneratorService 由 InfrastructureModule 导出
|
||||
],
|
||||
})
|
||||
export class DomainModule {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue