Documentation ¶
Index ¶
- func SetMinimumCommissionRateToValidators(ctx sdk.Context, keeper StakingKeeper, minCommissionRate sdk.Dec) error
- func SetupBech32ibcKeeper(bech32IbcKeeper *bech32ibckeeper.Keeper, ctx sdk.Context) error
- func UpdateMinimumCommissionRateParam(ctx sdk.Context, keeper StakingKeeper) (sdk.Dec, error)
- type StakingKeeper
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 ¶
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) }
Click to show internal directories.
Click to hide internal directories.