Documentation ¶
Index ¶
- func AddTestAddrs(bankKeeper bankkeeper.Keeper, stakingKeeper BondDenomProvider, ctx sdk.Context, ...) []sdk.AccAddress
- func ConvertAddrsToValAddrs(addrs []sdk.AccAddress) []sdk.ValAddress
- func CreateRandomAccounts(numAccts int) []sdk.AccAddress
- type BondDenomProvider
- type GenerateAccountStrategy
- type KeeperTestHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTestAddrs ¶ added in v0.20.2
func AddTestAddrs(bankKeeper bankkeeper.Keeper, stakingKeeper BondDenomProvider, ctx sdk.Context, accNum int, accAmt math.Int) []sdk.AccAddress
AddTestAddrs constructs and returns accNum amount of accounts with an initial balance of accAmt in random order
func ConvertAddrsToValAddrs ¶ added in v0.20.2
func ConvertAddrsToValAddrs(addrs []sdk.AccAddress) []sdk.ValAddress
ConvertAddrsToValAddrs converts the provided addresses to ValAddress.
func CreateRandomAccounts ¶
func CreateRandomAccounts(numAccts int) []sdk.AccAddress
CreateRandomAccounts is a function return a list of randomly generated AccAddresses
Types ¶
type BondDenomProvider ¶ added in v0.20.2
type GenerateAccountStrategy ¶ added in v0.20.2
type GenerateAccountStrategy func(int) []sdk.AccAddress
type KeeperTestHelper ¶
type KeeperTestHelper struct { suite.Suite App *app.BitsongApp // Mock bitsong application Ctx sdk.Context // simulated context QueryHelper *baseapp.QueryServiceTestHelper // GRPC query simulator TestAccs []sdk.AccAddress // Test accounts StakingHelper *stakinghelper.Helper // Useful staking helpers }
func (*KeeperTestHelper) FundAcc ¶ added in v0.20.2
func (s *KeeperTestHelper) FundAcc(acc sdk.AccAddress, amounts sdk.Coins)
FundAcc funds target address with specified amount.
func (*KeeperTestHelper) Setup ¶
func (s *KeeperTestHelper) Setup()
Click to show internal directories.
Click to hide internal directories.