distribution

package
v6.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package distribution 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.

The consumer chain should utilize the x/ccv/democracy/distribution module to perform democratic actions such as participating and voting within the chain's governance system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppModule

type AppModule struct {
	// embed the Cosmos SDK's x/distribution AppModule
	distr.AppModule
	// contains filtered or unexported fields
}

AppModule embeds the Cosmos SDK's x/distribution AppModule

func NewAppModule

func NewAppModule(
	cdc codec.Codec, keeper keeper.Keeper, ak distrtypes.AccountKeeper,
	bk distrtypes.BankKeeper, sk stakingkeeper.Keeper, feeCollectorName string, subspace exported.Subspace,
) AppModule

NewAppModule creates a new AppModule object using the native x/distribution module AppModule constructor.

func (AppModule) AllocateTokens

func (am AppModule) AllocateTokens(
	ctx sdk.Context,
) error

AllocateTokens handles distribution of the collected fees NOTE: refactored to use collections (FeePool.Get instead of GetFeePool) for v47 -> v50 migration

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(goCtx context.Context) error

BeginBlock implements HasBeginBlocker interface The cosmos-sdk/distribution BeginBlocker functionality is replicated here, however no proposer awards are allocated.

type AppModuleBasic

type AppModuleBasic struct {
	distr.AppModuleBasic
}

AppModule embeds the Cosmos SDK's x/distribution AppModuleBasic.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL