github.com/Finschia/finschia-sdk@v0.48.1/x/token/class/keeper/keeper.go (about) 1 package keeper 2 3 import ( 4 "github.com/Finschia/finschia-sdk/codec" 5 sdk "github.com/Finschia/finschia-sdk/types" 6 ) 7 8 // Keeper defines the class module Keeper 9 type Keeper struct { 10 // The (unexposed) keys used to access the stores from the Context. 11 storeKey sdk.StoreKey 12 13 // The codec for binary encoding/decoding. 14 cdc codec.Codec 15 } 16 17 // NewKeeper returns a class keeper 18 func NewKeeper( 19 cdc codec.Codec, 20 key sdk.StoreKey, 21 ) Keeper { 22 return Keeper{ 23 storeKey: key, 24 cdc: cdc, 25 } 26 }