Documentation
¶
Overview ¶
package staking wraps the Cosmos SDK default x/staking module. But it nullifies any validator actions (jail, unjail, etc) and validator update in order to match Rollkit single sequencer characteristic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvokeSetStakingHooks ¶
Types ¶
type AppModule ¶
AppModule embeds the Cosmos SDK's x/staking AppModule where we only override specific methods.
func NewAppModule ¶
func NewAppModule(cdc codec.Codec, k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ls exported.Subspace) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
BeginBlock returns the begin blocker 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.
type AppModuleBasic ¶
type AppModuleBasic struct {
staking.AppModuleBasic
}
type ModuleInputs ¶
type ModuleInputs struct {
depinject.In
Config *modulev1.Module
ValidatorAddressCodec runtime.ValidatorAddressCodec
ConsensusAddressCodec runtime.ConsensusAddressCodec
AccountKeeper types.AccountKeeper
BankKeeper types.BankKeeper
Cdc codec.Codec
StoreService store.KVStoreService
// LegacySubspace is used solely for migration of x/params managed parameters
LegacySubspace exported.Subspace `optional:"true"`
}
type ModuleOutputs ¶
Dependency Injection Outputs
func ProvideModule ¶
func ProvideModule(in ModuleInputs) ModuleOutputs
Click to show internal directories.
Click to hide internal directories.