Documentation ¶
Overview ¶
Package dist defines a "wrapper" module around the Cosmos SDK's native x/distribution module. In other words, it provides the exact same functionality as the native module in that it simply embeds the native module. However, it overrides the AllocateTokens function so the the allocation of rewards is done towards the Sequencer, the stakers, and the community pool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppModule ¶
type AppModule struct { distribution.AppModule // contains filtered or unexported fields }
AppModule embeds the Cosmos SDK's x/distribution AppModule where we only override specific methods.
func NewAppModule ¶
func NewAppModule( cdc codec.Codec, keeper keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, sk types.StakingKeeper, ) AppModule
NewAppModule creates a new AppModule object using the native x/distribution AppModule constructor.
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the distribution module.
type AppModuleBasic ¶
type AppModuleBasic struct {
distribution.AppModuleBasic
}
AppModule embeds the Cosmos SDK's x/distribution AppModuleBasic.