Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine AS builder
FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.indexer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine AS builder
FROM golang:1.25-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
Expand Down
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