Documentation ¶
Index ¶
Constants ¶
View Source
const ( ValidatorCount = 10 ValidatorSettlementIndex = ValidatorCount ReserveIndex = ValidatorCount + 1 TempIndex = ValidatorCount + 2 TotalCount = TempIndex + 1 )
Variables ¶
View Source
var (
Pks = simtestutil.CreateTestPubKeys(TotalCount)
)
Functions ¶
func NewMsgCreateValidator ¶
func NewMsgCreateValidator(address sdk.ValAddress, pubKey cryptotypes.PubKey, amt sdkmath.Int) *stakingtypes.MsgCreateValidator
NewMsgCreateValidator test msg creator
func NewMsgDelegate ¶
func NewMsgDelegate(delegatorAddress sdk.AccAddress, validatorAddress sdk.ValAddress, amt sdkmath.Int) *stakingtypes.MsgDelegate
NewMsgDelegate test msg creator
Types ¶
type TestInput ¶
type TestInput struct { Ctx sdk.Context Cdc *codec.LegacyAmino AccountKeeper authkeeper.AccountKeeper BankKeeper bankkeeper.Keeper RewardKeeper rewardkeeper.Keeper StakingKeeper *stakingkeeper.Keeper SlashingKeeper slashingkeeper.Keeper DistrKeeper distrkeeper.Keeper VolunteerKeeper volunteerkeeper.Keeper StakingHandler *stakingtestutil.Helper }
TestInput nolint
func (*TestInput) InitAccountWithCoins ¶
Click to show internal directories.
Click to hide internal directories.