Documentation ¶
Index ¶
- Constants
- Variables
- func MakeEncodingConfig(_ *testing.T) simparams.EncodingConfig
- func NewMsgCreateValidator(address sdk.ValAddress, pubKey cryptotypes.PubKey, amt sdk.Int) *stakingtypes.MsgCreateValidator
- func NewMsgDelegate(delegatorAddress sdk.AccAddress, validatorAddress sdk.ValAddress, amt sdk.Int) *stakingtypes.MsgDelegate
- type TestInput
Constants ¶
View Source
const ( ValidatorCount = 10 ValidatorSettlementIndex = ValidatorCount ReserveIndex = ValidatorCount + 1 TempIndex = ValidatorCount + 2 TotalCount = TempIndex + 1 )
Variables ¶
View Source
var ModuleBasics = module.NewBasicManager( auth.AppModuleBasic{}, bank.AppModuleBasic{}, distr.AppModuleBasic{}, staking.AppModuleBasic{}, slashing.AppModuleBasic{}, mint.AppModuleBasic{}, params.AppModuleBasic{}, reward.AppModuleBasic{}, volunteer.AppModuleBasic{}, )
ModuleBasics nolint
View Source
var (
Pks = simtestutil.CreateTestPubKeys(TotalCount)
)
Functions ¶
func MakeEncodingConfig ¶
func MakeEncodingConfig(_ *testing.T) simparams.EncodingConfig
MakeEncodingConfig nolint
func NewMsgCreateValidator ¶
func NewMsgCreateValidator(address sdk.ValAddress, pubKey cryptotypes.PubKey, amt sdk.Int) *stakingtypes.MsgCreateValidator
NewMsgCreateValidator test msg creator
func NewMsgDelegate ¶
func NewMsgDelegate(delegatorAddress sdk.AccAddress, validatorAddress sdk.ValAddress, amt sdk.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.