Upstream sync

This commit is contained in:
Senad Uka
2023-09-21 11:59:08 +02:00
parent f4dcb823c4
commit c2d6923375
12 changed files with 1247 additions and 89 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"github.com/jinzhu/gorm"
"gitlab.com/pactual1/backend/services/blockchain"
"gitlab.com/pactual1/backend/shared"
)
@@ -11,13 +12,15 @@ type service struct {
ch chan string
db *gorm.DB
encryptionClient shared.EncryptionClient
blockchainClient blockchain.Service
}
func NewService(ch chan string, db *gorm.DB, encryptionClient shared.EncryptionClient) service {
func NewService(ch chan string, db *gorm.DB, encryptionClient shared.EncryptionClient, blockchainClient blockchain.Service) service {
return service{
ch: ch,
db: db,
encryptionClient: encryptionClient,
blockchainClient: blockchainClient,
}
}