Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cmd/api-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ func main() {
_ = ws.NewRedisBridge(wsHub, redisClient)

userSvc := user.NewService(userRepo, circleRepo)
circleSvc := circle.NewService(circleRepo, &moiAdapter{repo: userRepo}, &communityAdapter{repo: communityRepo}, wsBroadcaster, circle.NewTransactor(db))
circleSvc := circle.NewService(circleRepo, &moiAdapter{repo: userRepo}, circle.Dependencies{
CommunityChecker: &communityAdapter{repo: communityRepo},
Broadcaster: wsBroadcaster,
Transactor: circle.NewTransactor(db),
})
// Stellar client used for on-chain verification
horizonClient := stellar.NewClient(cfg.Stellar.HorizonURL, cfg.Stellar.SorobanRPCURL, cfg.Stellar.NetworkPassphrase)

Expand Down Expand Up @@ -251,7 +255,7 @@ func main() {
wsH := handler.NewWebSocketHandler(wsHub, cfg.CORS.AllowedOrigins)

authH := handler.NewAuthHandler(authSvc, userSvc, walletSvc, totpSvc, verificationSvc, emailSvc, redisClient, userRepo)
userH := handler.NewUserHandler(userSvc, redisClient)
userH := handler.NewUserHandler(userSvc)
circleH := handler.NewCircleHandler(circleSvc, inviteSvc, contribSvc, payoutSvc)
contribH := handler.NewContributionHandler(contribSvc, contribRepo)
payoutH := handler.NewPayoutHandler(payoutSvc, payoutRepo)
Expand Down
Loading
Loading