import { Module } from '@nestjs/common';
import { HttpModule } from '@nestjs/axios';
import { MpcWalletService } from './mpc-wallet.service';
import { MpcClientService } from './mpc-client.service';
import { KafkaModule } from '../../kafka/kafka.module';

@Module({
  imports: [
    HttpModule.register({
      timeout: 300000, // MPC 操作可能需要较长时间
      maxRedirects: 5,
    }),
    KafkaModule, // 用于事件驱动模式
  ],
  providers: [MpcWalletService, MpcClientService],
  exports: [MpcWalletService, MpcClientService],
})
export class MpcModule {}
