-
Notifications
You must be signed in to change notification settings - Fork 6
/
keeper.go
31 lines (27 loc) · 859 Bytes
/
keeper.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
package keeper
import (
"github.com/cosmos/cosmos-sdk/codec"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/xpladev/xpla/x/staking/types"
)
type Keeper struct {
*stakingkeeper.Keeper
storeKey storetypes.StoreKey
cdc codec.BinaryCodec
bankKeeper types.BankKeeper
volunteerKeeper types.VolunteerKeeper
}
func NewKeeper(
cdc codec.BinaryCodec, key storetypes.StoreKey, ak stakingtypes.AccountKeeper, bk stakingtypes.BankKeeper,
govModAddress string, vk types.VolunteerKeeper,
) *Keeper {
return &Keeper{
Keeper: stakingkeeper.NewKeeper(cdc, key, ak, bk, govModAddress),
storeKey: key,
cdc: cdc,
bankKeeper: bk,
volunteerKeeper: vk,
}
}