Versions in this module Expand all Collapse all v0 v0.33.2 Apr 3, 2019 Changes in this version + func DeriveRand(r *rand.Rand) *rand.Rand + func GetMemberOfInitialState(r *rand.Rand, weights []int) int + func PeriodicInvariant(invariant sdk.Invariant, period int, offset int) sdk.Invariant + func RandStringOfLength(r *rand.Rand, n int) string + func RandTimestamp(r *rand.Rand) time.Time + func RandomAmount(r *rand.Rand, max sdk.Int) sdk.Int + func RandomDecAmount(r *rand.Rand, max sdk.Dec) sdk.Dec + func RandomRequestBeginBlock(r *rand.Rand, params Params, validators mockValidators, pastTimes []time.Time, ...) abci.RequestBeginBlock + func RandomSetGenesis(r *rand.Rand, app *mock.App, accs []Account, denoms []string) + func Simulate(t *testing.T, app *baseapp.BaseApp, appStateFn AppStateFn, ...) (bool, error) + func SimulateFromSeed(tb testing.TB, app *baseapp.BaseApp, appStateFn AppStateFn, seed int64, ...) (stopEarly bool, simError error) + type Account struct + Address sdk.AccAddress + PrivKey crypto.PrivKey + PubKey crypto.PubKey + func RandomAcc(r *rand.Rand, accs []Account) Account + func RandomAccounts(r *rand.Rand, n int) []Account + func (acc Account) Equals(acc2 Account) bool + type AppStateFn func(r *rand.Rand, accs []Account, genesisTimestamp time.Time) (appState json.RawMessage, accounts []Account, chainId string) + type FutureOperation struct + BlockHeight int + BlockTime time.Time + Op Operation + type Operation func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []Account, ...) (action string, futureOps []FutureOperation, err error) + type OperationQueue map[int][]Operation + type Params struct + BlockSizeTransitionMatrix TransitionMatrix + EvidenceFraction float64 + InitialLivenessWeightings []int + LivenessTransitionMatrix TransitionMatrix + NumKeys int + PastEvidenceFraction float64 + func DefaultParams() Params + func RandomParams(r *rand.Rand) Params + type TransitionMatrix struct + func CreateTransitionMatrix(weights [][]int) (TransitionMatrix, error) + func (t TransitionMatrix) NextState(r *rand.Rand, i int) int + type WeightedOperation struct + Op Operation + Weight int + type WeightedOperations []WeightedOperation