Versions in this module Expand all Collapse all v0 v0.1.17 Jun 13, 2023 Changes in this version + func GetTmConsPubKey(v types.Validator) (tmcrypto.PubKey, error) + func NewValidator(t testing.TB, operator sdk.ValAddress, pubKey cryptotypes.PubKey) types.Validator + func ToTmValidator(v types.Validator, r math.Int) (*tmtypes.Validator, error) + func ToTmValidators(v types.Validators, r math.Int) ([]*tmtypes.Validator, error) + func ZeroCommission() stakingtypes.CommissionRates + type Helper struct + Commission stakingtypes.CommissionRates + Ctx sdk.Context + Denom string + func NewHelper(t *testing.T, ctx sdk.Context, k keeper.Keeper) *Helper + func (sh *Helper) CheckDelegator(delegator sdk.AccAddress, val sdk.ValAddress, found bool) + func (sh *Helper) CheckValidator(addr sdk.ValAddress, status sdkstaking.BondStatus, jailed bool) stakingtypes.Validator + func (sh *Helper) CreateValidator(addr sdk.ValAddress, pk cryptotypes.PubKey, stakeAmount math.Int, ok bool) + func (sh *Helper) CreateValidatorMsg(addr sdk.ValAddress, pk cryptotypes.PubKey, stakeAmount math.Int) *stakingtypes.MsgCreateValidator + func (sh *Helper) CreateValidatorWithMsg(ctx context.Context, msg *stakingtypes.MsgCreateValidator) (*stakingtypes.MsgCreateValidatorResponse, error) + func (sh *Helper) CreateValidatorWithValPower(addr sdk.ValAddress, pk cryptotypes.PubKey, valPower int64, ok bool) math.Int + func (sh *Helper) Delegate(delegator sdk.AccAddress, val sdk.ValAddress, amount math.Int) + func (sh *Helper) DelegateWithPower(delegator sdk.AccAddress, val sdk.ValAddress, power int64) + func (sh *Helper) RedeemTokensForShares(delegator sdk.AccAddress, amount sdk.Coin, ok bool) + func (sh *Helper) TokenizeShares(delegator sdk.AccAddress, val sdk.ValAddress, amount sdk.Coin, ...) + func (sh *Helper) TranserTokenizeShareRecord(recordId uint64, owner, newOwner sdk.AccAddress, ok bool) + func (sh *Helper) TurnBlock(newTime time.Time) sdk.Context + func (sh *Helper) TurnBlockTimeDiff(diff time.Duration) sdk.Context + func (sh *Helper) Undelegate(delegator sdk.AccAddress, val sdk.ValAddress, amount math.Int, ok bool)