Documentation
¶
Index ¶
- func ZeroCommission() stakingtypes.CommissionRates
- type Helper
- func (h *Helper) CreateValidator(addr sdk.ValAddress, pk cryptotypes.PubKey, blsPK *bls12381.PublicKey, ...)
- func (h *Helper) CreateValidatorMsg(addr sdk.ValAddress, pk cryptotypes.PubKey, blsPK *bls12381.PublicKey, ...) *types.MsgWrappedCreateValidator
- func (h *Helper) CreateValidatorWithValPower(addr sdk.ValAddress, pk cryptotypes.PubKey, blsPK *bls12381.PublicKey, ...) math.Int
- func (h *Helper) Handle(msg sdk.Msg, ok bool) *sdk.Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ZeroCommission ¶
func ZeroCommission() stakingtypes.CommissionRates
ZeroCommission constructs a commission rates with all zeros.
Types ¶
type Helper ¶
type Helper struct {
Ctx sdk.Context
App *app.BabylonApp
CheckpointingKeeper *keeper.Keeper
MsgSrvr types.MsgServer
QueryClient types.QueryClient
StakingKeeper *stakingkeeper.Keeper
EpochingKeeper *epochingkeeper.Keeper
GenAccs []authtypes.GenesisAccount
// contains filtered or unexported fields
}
Helper is a structure which wraps the entire app and exposes functionalities for testing the epoching module
func (*Helper) CreateValidator ¶
func (h *Helper) CreateValidator(addr sdk.ValAddress, pk cryptotypes.PubKey, blsPK *bls12381.PublicKey, pop *types.ProofOfPossession, stakeAmount math.Int, ok bool)
CreateValidator calls handler to create a new staking validator
func (*Helper) CreateValidatorMsg ¶
func (h *Helper) CreateValidatorMsg(addr sdk.ValAddress, pk cryptotypes.PubKey, blsPK *bls12381.PublicKey, pop *types.ProofOfPossession, stakeAmount math.Int) *types.MsgWrappedCreateValidator
CreateValidatorMsg returns a message used to create validator in this service.
func (*Helper) CreateValidatorWithValPower ¶
func (h *Helper) CreateValidatorWithValPower(addr sdk.ValAddress, pk cryptotypes.PubKey, blsPK *bls12381.PublicKey, pop *types.ProofOfPossession, valPower int64, ok bool) math.Int
CreateValidatorWithValPower calls handler to create a new staking validator with zero commission
Click to show internal directories.
Click to hide internal directories.