import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { ScheduleModule } from '@nestjs/schedule';
import { RelayService } from './modules/relay/relay.service';
import { RelayController } from './modules/relay/relay.controller';
import { AccountingService } from './modules/accounting/accounting.service';
import { AccountingController } from './modules/accounting/accounting.controller';
import { NonceManagerService } from './modules/nonce/nonce-manager.service';
import { HealthController } from './modules/health/health.controller';

@Module({
  imports: [
    ConfigModule.forRoot({ isGlobal: true }),
    ScheduleModule.forRoot(),
  ],
  controllers: [RelayController, AccountingController, HealthController],
  providers: [RelayService, AccountingService, NonceManagerService],
})
export class AppModule {}
