import { Module } from "@nestjs/common";
import { MongooseModule } from "@nestjs/mongoose";
import { SecurityController } from "./security.controller";
import { FundService } from "./fund.service";
import { Fund, FundSchema } from "./schemas/fund.schema";
import { S3Service } from "../common/provider/storage/s3";
import { UserModule } from "src/user/user.module";
import { FundWeb3Service } from "./fund.web3.service";
import { InstrumentService } from "./instrument.service";
import { Instrument, InstrumentSchema } from "./schemas/instrument.schema";
import { CustodialModule } from "src/shared/custodial/custodial.module";
import { EmailModule } from "src/common/provider/mail/email.module";
import { Nav, NavSchema } from "./schemas/nav.schema";
import { AdminProfileModule } from "src/admin-profile/admin-profile.module";
@Module({
imports: [
MongooseModule.forFeature([
{
name: Fund.name,
schema: FundSchema,
},
]),
MongooseModule.forFeature([
{
name: Instrument.name,
schema: InstrumentSchema,
},
]),
MongooseModule.forFeature([
{
name: Nav.name,
schema: NavSchema,
},
]),
UserModule,
CustodialModule,
EmailModule,
AdminProfileModule,
],
controllers: [SecurityController],
providers: [FundService, S3Service, FundWeb3Service, InstrumentService],
exports: [FundService, InstrumentService],
})
export class SecurityModule {}