distribution

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterDenoms

func FilterDenoms(coins sdk.Coins, denoms ...string) sdk.Coins

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,
	ck *commitmentkeeper.Keeper,
	sk *estakingkeeper.Keeper,
	assetprofileKeeper *assetprofilekeeper.Keeper,
	feeCollectorName string, subspace exported.Subspace,
) AppModule

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

func (AppModule) AllocateEdenBTokens added in v0.52.0

func (am AppModule) AllocateEdenBTokens(ctx sdk.Context)

AllocateTokens handles distribution of the collected fees EdenB is distributed for staking Elys and locking Eden, not for locking EdenB

func (AppModule) AllocateEdenUsdcTokens added in v0.52.0

func (am AppModule) AllocateEdenUsdcTokens(ctx sdk.Context)

AllocateTokens handles distribution of the collected fees USDC and Eden is distributed for staking Elys and locking Eden and locking EdenB

func (AppModule) BeginBlock

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

BeginBlocker mirror functionality of cosmos-sdk/distribution BeginBlocker however it allocates no proposer reward

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

RegisterInvariants registers the distribution module invariants.

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