keeper

package
v4.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FloatToBigInt

func FloatToBigInt(val float64) *big.Int

func GetAccount

func GetAccount(name string) (sdk.AccAddress, error)

func GetDevGrantsAccount

func GetDevGrantsAccount() (sdk.AccAddress, error)

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

NewQuerier returns a minting Querier handler.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	key storetypes.StoreKey,
	paramSpace paramtypes.Subspace,
	sk types.StakingKeeper,
	ak types.AccountKeeper,
	bk types.BankKeeper,
	feeCollectorName string,
	miningName string,
) Keeper

func (Keeper) AddCollectedFees

func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error

AddCollectedFees implements an alias call to the underlying supply keeper's AddCollectedFees to be used in BeginBlocker.

func (Keeper) BlockMint

func (k Keeper) BlockMint(ctx sdk.Context)

func (Keeper) GetInflation

func (k Keeper) GetInflation(ctx sdk.Context) (sdk.Dec, error)

func (Keeper) GetMintedBlock

func (k Keeper) GetMintedBlock(
	ctx sdk.Context,
	height int64,
) (val types.MintedBlock, found bool)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)

GetParams get all parameters as types.Params

func (Keeper) Inflation

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) MintCoins

func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error

func (Keeper) MintDenom

func (k Keeper) MintDenom(ctx sdk.Context) (res string)

MintDenom returns the MintDenom param

func (Keeper) Params

func (Keeper) SetMintedBlock

func (k Keeper) SetMintedBlock(ctx sdk.Context, block types.MintedBlock)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

type Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

Migrator is a struct for handling in-place store migrations.

func NewMigrator

func NewMigrator(keeper Keeper, legacy exported.Subspace) Migrator

NewMigrator returns a new Migrator

func (Migrator) Migrate4to5

func (m Migrator) Migrate4to5(ctx sdk.Context) error

Migrate4to5 migrates from version 4 to 5.

Jump to

Keyboard shortcuts

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