0g-chain/x/auction/keeper/keeper.go

28 lines
707 B
Go
Raw Normal View History

2019-11-25 19:46:02 +00:00
package keeper
import (
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/params/subspace"
2019-12-11 22:59:06 +00:00
2019-11-25 19:46:02 +00:00
"github.com/kava-labs/kava/x/auction/types"
)
type Keeper struct {
2019-12-11 22:59:06 +00:00
supplyKeeper types.SupplyKeeper
2019-11-25 19:46:02 +00:00
storeKey sdk.StoreKey
cdc *codec.Codec
paramSubspace subspace.Subspace
// TODO codespace
}
// NewKeeper returns a new auction keeper.
2019-12-12 00:02:06 +00:00
func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, supplyKeeper types.SupplyKeeper, paramstore subspace.Subspace) Keeper {
2019-11-25 19:46:02 +00:00
return Keeper{
2019-12-11 22:59:06 +00:00
supplyKeeper: supplyKeeper,
2019-11-25 19:46:02 +00:00
storeKey: storeKey,
cdc: cdc,
paramSubspace: paramstore.WithKeyTable(types.ParamKeyTable()),
}
}