-
Notifications
You must be signed in to change notification settings - Fork 5
/
services.go
34 lines (28 loc) · 952 Bytes
/
services.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package scheduler
import (
"github.com/ethpandaops/assertoor/pkg/coordinator/clients"
"github.com/ethpandaops/assertoor/pkg/coordinator/names"
"github.com/ethpandaops/assertoor/pkg/coordinator/types"
"github.com/ethpandaops/assertoor/pkg/coordinator/wallet"
)
type servicesProvider struct {
clientPool *clients.ClientPool
walletManager *wallet.Manager
validatorNames *names.ValidatorNames
}
func NewServicesProvider(clientPool *clients.ClientPool, walletManager *wallet.Manager, validatorNames *names.ValidatorNames) types.TaskServices {
return &servicesProvider{
clientPool: clientPool,
walletManager: walletManager,
validatorNames: validatorNames,
}
}
func (p *servicesProvider) ClientPool() *clients.ClientPool {
return p.clientPool
}
func (p *servicesProvider) WalletManager() *wallet.Manager {
return p.walletManager
}
func (p *servicesProvider) ValidatorNames() *names.ValidatorNames {
return p.validatorNames
}