upgradev3

package
v6.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetMinimumCommissionRateToValidators

func SetMinimumCommissionRateToValidators(ctx sdk.Context, keeper StakingKeeper, minCommissionRate sdk.Dec) error

SetMinimumCommissionRateToValidators is update the minimum commission rate to the validators rate whose commission rate is below the minimum commission rate.

func SetupBech32ibcKeeper

func SetupBech32ibcKeeper(bech32IbcKeeper *bech32ibckeeper.Keeper, ctx sdk.Context) error

SetupBech32ibcKeeper updates keeper by setting the native account prefix to "umee". Failing to set the native prefix will cause a chain halt on init genesis or in the firstBeginBlocker assertions.

func UpdateMinimumCommissionRateParam

func UpdateMinimumCommissionRateParam(ctx sdk.Context, keeper StakingKeeper) (sdk.Dec, error)

UpdateMinimumCommissionRateParam is update the minimum commission rate param of staking.

Types

type StakingKeeper

type StakingKeeper interface {
	GetParams(ctx sdk.Context) types.Params
	SetParams(ctx sdk.Context, params types.Params)
	GetAllValidators(ctx sdk.Context) (validators []types.Validator)
	BeforeValidatorModified(ctx sdk.Context, valAddr sdk.ValAddress) error
	SetValidator(ctx sdk.Context, validator types.Validator)
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (types.Validator, bool)
}

Jump to

Keyboard shortcuts

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