Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Addrs store generated addresses for test Addrs = createTestAddrs(500) DefaultMSD = sdk.NewDecWithPrec(1, 3) )
Functions ¶
func CreateTestInput ¶
func CreateTestInput( t *testing.T, isCheckTx bool, initBalance int64, ) (sdk.Context, auth.AccountKeeper, keeper.Keeper, staking.Keeper, crisis.Keeper)
CreateTestInput returns keepers for test
func CreateValidators ¶
func CreateValidators( t *testing.T, stakingHandler sdk.Handler, ctx sdk.Context, addrs []sdk.ValAddress, powerAmt []int64, )
CreateValidators creates validators according to arguments
func MakeTestCodec ¶
MakeTestCodec creates a codec used only for testing
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.