Documentation ¶
Index ¶
- Constants
- Variables
- func NewParamChangeProposalHandler(k Keeper) govtypes.Handler
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(_ *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(_ *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(_ context.CLIContext, _ *mux.Router)
- func (AppModuleBasic) ValidateGenesis(_ json.RawMessage) error
- type Keeper
- type KeyTable
- type ParamChange
- type ParamSet
- type ParamSetPair
- type ParamSetPairs
- type ParameterChangeProposal
- type ReadOnlySubspace
- type Subspace
Constants ¶
View Source
const ( StoreKey = subspace.StoreKey TStoreKey = subspace.TStoreKey ModuleName = types.ModuleName RouterKey = types.RouterKey )
Variables ¶
View Source
var ( // functions aliases NewParamSetPair = subspace.NewParamSetPair NewSubspace = subspace.NewSubspace NewKeyTable = subspace.NewKeyTable DefaultTestComponents = subspace.DefaultTestComponents RegisterCodec = types.RegisterCodec ErrUnknownSubspace = types.ErrUnknownSubspace ErrSettingParameter = types.ErrSettingParameter ErrEmptyChanges = types.ErrEmptyChanges ErrEmptySubspace = types.ErrEmptySubspace ErrEmptyKey = types.ErrEmptyKey ErrEmptyValue = types.ErrEmptyValue NewParameterChangeProposal = types.NewParameterChangeProposal NewParamChange = types.NewParamChange NewParamChangeWithSubkey = types.NewParamChangeWithSubkey ValidateChanges = types.ValidateChanges // variable aliases ModuleCdc = types.ModuleCdc )
Functions ¶
Types ¶
type AppModuleBasic ¶
type AppModuleBasic struct{}
app module basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
default genesis state
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(_ *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command for the params module.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(_ *codec.Codec) *cobra.Command
get the root tx command of this module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
register module codec
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(_ context.CLIContext, _ *mux.Router)
register rest routes
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(_ json.RawMessage) error
module validate genesis
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the global paramstore
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, key *sdk.KVStoreKey, tkey *sdk.TransientStoreKey) (k Keeper)
NewKeeper constructs a params keeper nolint
func (Keeper) GetSubspace ¶
Get existing substore from keeper
type ParamChange ¶
type ParamChange = types.ParamChange
type ParamSetPair ¶
type ParamSetPair = subspace.ParamSetPair
type ParamSetPairs ¶
type ParamSetPairs = subspace.ParamSetPairs
type ParameterChangeProposal ¶
type ParameterChangeProposal = types.ParameterChangeProposal
type ReadOnlySubspace ¶
type ReadOnlySubspace = subspace.ReadOnlySubspace
Click to show internal directories.
Click to hide internal directories.