keeper

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	bankKeeper types.BankKeeper,
	stakingKeeper types.StakingKeeper,
	collectorName string,
	authority string,
) *Keeper

func (Keeper) BondedRatio

func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec

BondedRatio implements an alias call to the underlying staking keeper's BondedRatio to be used in BeginBlocker.

func (Keeper) Burn added in v1.3.0

func (k Keeper) Burn(ctx sdk.Context, address string, amount sdk.Coins) error

func (Keeper) GetAllMinterStateHistory

func (k Keeper) GetAllMinterStateHistory(ctx sdk.Context) (list []*types.MinterState)

GetAllMinterStateHistory returns all historical minter states for ended Minter

func (Keeper) GetCollectorName

func (k Keeper) GetCollectorName() string

func (Keeper) GetCurrentInflation

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

func (Keeper) GetMinterState

func (k Keeper) GetMinterState(ctx sdk.Context) (minter types.MinterState)

get the minter

func (Keeper) GetMinterStateHistory

func (k Keeper) GetMinterStateHistory(ctx sdk.Context, sequenceId uint32) (state types.MinterState, found bool)

get the vesting types

func (Keeper) GetParams

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

GetParams returns the current x/mint module parameters.

func (Keeper) Inflation

func (Keeper) Logger

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

func (Keeper) MarshalConfig added in v1.2.0

func (k Keeper) MarshalConfig(minterConfig types.MinterConfigI) ([]byte, error)

func (Keeper) Mint

func (k Keeper) Mint(ctx sdk.Context) (math.Int, error)

func (Keeper) MintCoins

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

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

func (Keeper) MintDenom

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

MintDenom returns the denom param

func (Keeper) Params

func (Keeper) SendMintedCoins added in v1.1.0

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

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

func (Keeper) SetMinterState

func (k Keeper) SetMinterState(ctx sdk.Context, minter types.MinterState)

set the minter

func (Keeper) SetMinterStateHistory

func (k Keeper) SetMinterStateHistory(ctx sdk.Context, state types.MinterState)

set the vesting types

func (Keeper) SetParams

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

SetParams sets the x/mint module parameters.

func (Keeper) State

func (Keeper) UnmarshalConfig added in v1.2.0

func (k Keeper) UnmarshalConfig(bz []byte) (types.MinterConfigI, error)

func (Keeper) UpdateParams added in v1.2.0

func (k Keeper) UpdateParams(ctx sdk.Context, authority string, params types.Params) error

type Migrator added in v1.1.0

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

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

func NewMigrator added in v1.1.0

func NewMigrator(keeper Keeper, legacySubspace subspace.Subspace) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate1to2 added in v1.1.0

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

Migrate1to2 migrates from version 1 to 2.

func (Migrator) Migrate2to3 added in v1.2.0

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

Migrate2to3 migrates from version 2 to 3.

Jump to

Keyboard shortcuts

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