types

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package types only consists of a copy from the cosmos' mint module's expected keepers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGenesisState added in v2.10.0

func DefaultGenesisState() *types.GenesisState

DefaultGenesisState creates a default GenesisState object.

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress

	SetModuleAccount(ctx context.Context, i sdk.ModuleAccountI)
	GetModuleAccount(ctx context.Context, moduleName string) sdk.ModuleAccountI
}

AccountKeeper defines the contract required for account APIs.

type BankKeeper

type BankKeeper interface {
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx context.Context, name string, amt sdk.Coins) error
}

BankKeeper defines the contract needed to be fulfilled for banking and supply dependencies.

type DistributionKeeper

type DistributionKeeper interface {
	FundCommunityPool(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error
	GetFeePool(ctx context.Context) (distrtypes.FeePool, error)
}

DistributionKeeper defines the expected distribution keeper.

type StakingKeeper

type StakingKeeper interface {
	StakingTokenSupply(context.Context) (math.Int, error) // total staking token supply
	TotalBondedTokens(context.Context) (math.Int, error)  // total bonded tokens within the validator set
	BondedRatio(ctx context.Context) (math.LegacyDec, error)
	BondDenom(ctx context.Context) (string, error)
}

StakingKeeper defines the expected staking keeper.

Jump to

Keyboard shortcuts

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