Documentation ¶
Index ¶
- func GetSimAccount(address sdk.Address, accs []simtypes.Account) (simtypes.Account, bool)
- func RandomCoin(r *rand.Rand, denom string, maxAmount int) sdk.Coin
- func RandomDecCoins(r *rand.Rand, denoms []string, maxAmount sdkmath.LegacyDec) sdk.DecCoins
- func RandomDuration(r *rand.Rand, min time.Duration, max time.Duration) time.Duration
- func RandomFutureTime(r *rand.Rand, currentTime time.Time) time.Time
- func RandomPositiveUint32(r *rand.Rand) uint32
- func RandomPositiveUint64(r *rand.Rand) uint64
- func RandomSliceElement[T any](r *rand.Rand, slice []T) T
- func RandomSubSlice[T any](r *rand.Rand, items []T) []T
- func SendMsg(r *rand.Rand, moduleName string, app *baseapp.BaseApp, ...) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSimAccount ¶
GetSimAccount gets the Account with the given address
func RandomCoin ¶
RandomCoin returns a random coin having the specified denomination and the max given amount
func RandomDecCoins ¶
RandomDecCoins returns a random list of DecCoins by randomly selecting a sub set of the provided denoms.
func RandomDuration ¶
RandomDuration returns a random duration between the min and max
func RandomFutureTime ¶
RandomFutureTime returns a random future time
func RandomPositiveUint32 ¶
RandomPositiveUint32 returns a random positive uint32
func RandomPositiveUint64 ¶
RandomPositiveUint64 returns a random positive uint64
func RandomSliceElement ¶
RandomSliceElement returns a random element from the given slice
func RandomSubSlice ¶
RandomSubSlice returns a random subset of the given slice
func SendMsg ¶
func SendMsg( r *rand.Rand, moduleName string, app *baseapp.BaseApp, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, msg sdk.Msg, ctx sdk.Context, simAccount simtypes.Account, ) (simtypes.OperationMsg, []simtypes.FutureOperation, error)
SendMsg sends a transaction with the specified message.
Types ¶
This section is empty.