-
Notifications
You must be signed in to change notification settings - Fork 41
/
new_migrator.go
33 lines (30 loc) · 1.01 KB
/
new_migrator.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
package migrations
import (
distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
commitmentkeeper "github.com/elys-network/elys/x/commitment/keeper"
estakingkeeper "github.com/elys-network/elys/x/estaking/keeper"
incentivekeeper "github.com/elys-network/elys/x/incentive/keeper"
masterchefkeeper "github.com/elys-network/elys/x/masterchef/keeper"
)
type Migrator struct {
incentiveKeeper incentivekeeper.Keeper
estakingKeeper estakingkeeper.Keeper
masterchefKeeper masterchefkeeper.Keeper
distrKeeper distrkeeper.Keeper
commitmentKeeper commitmentkeeper.Keeper
}
func NewMigrator(
incentiveKeeper incentivekeeper.Keeper,
estakingKeeper estakingkeeper.Keeper,
masterchefKeeper masterchefkeeper.Keeper,
distrKeeper distrkeeper.Keeper,
commitmentKeeper commitmentkeeper.Keeper,
) Migrator {
return Migrator{
incentiveKeeper: incentiveKeeper,
estakingKeeper: estakingKeeper,
masterchefKeeper: masterchefKeeper,
distrKeeper: distrKeeper,
commitmentKeeper: commitmentKeeper,
}
}