Documentation ¶
Index ¶
- type AppModule
- func (am AppModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error
- type AppModuleBasic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppModule ¶
type AppModule struct { staking.AppModule AppModuleBasic AppModuleBasic Keeper keeper.Keeper }
func NewAppModule ¶
func NewAppModule(cdc codec.Codec, keeper keeper.Keeper, ak stakingtypes.AccountKeeper, bk stakingtypes.BankKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) DefaultGenesis ¶
func (am AppModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis Override AppModule.DefaultGenesis by AppModuleBasic.DefaultGenesis
func (AppModule) ExportGenesis ¶
ExportGenesis returns the exported genesis state as raw bytes for the staking module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the staking module. It returns no validator updates.
func (AppModule) ValidateGenesis ¶
func (am AppModule) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis Override AppModule.ValidateGenesis by AppModuleBasic.ValidateGenesis
type AppModuleBasic ¶
type AppModuleBasic struct {
staking.AppModuleBasic
}
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the staking module.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the staking module.
Click to show internal directories.
Click to hide internal directories.