mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-13 03:25:20 +00:00
28 lines
707 B
Go
28 lines
707 B
Go
package keeper
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"github.com/cosmos/cosmos-sdk/x/params/subspace"
|
|
|
|
"github.com/kava-labs/kava/x/auction/types"
|
|
)
|
|
|
|
type Keeper struct {
|
|
supplyKeeper types.SupplyKeeper
|
|
storeKey sdk.StoreKey
|
|
cdc *codec.Codec
|
|
paramSubspace subspace.Subspace
|
|
// TODO codespace
|
|
}
|
|
|
|
// NewKeeper returns a new auction keeper.
|
|
func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, supplyKeeper types.SupplyKeeper, paramstore subspace.Subspace) Keeper {
|
|
return Keeper{
|
|
supplyKeeper: supplyKeeper,
|
|
storeKey: storeKey,
|
|
cdc: cdc,
|
|
paramSubspace: paramstore.WithKeyTable(types.ParamKeyTable()),
|
|
}
|
|
}
|