# Functions
CreateTransitionMatrix creates a transition matrix from the provided weights.
Return default simulation parameters.
Derive a new rand deterministically from a rand.
GetMemberOfInitialState takes an initial array of weights, of size n.
PeriodicInvariant returns an Invariant function closure that asserts a given invariant if the mock application's last block modulo the given period is congruent to the given offset.
RandomAcc pick a random account from an array.
RandomAccounts generates n random accounts.
Generate a random amount.
RandomDecAmount generates a random decimal amount.
Return random simulation parameters.
RandomRequestBeginBlock generates a list of signing validators according to the provided list of validators, signing fraction, and evidence fraction.
RandomSetGenesis wraps mock.RandomSetGenesis, but using simulation accounts.
shamelessly copied from https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang#31832326 Generate a random string of a particular length.
RandTimestamp generates a random timestamp.
Simulate tests application by sending random messages.
SimulateFromSeed tests an application by running the provided operations, testing the provided invariants, but using the provided seed.
# Structs
Account contains a privkey, pubkey, address tuple eventually more useful data can be placed in here.
FutureOperation is an operation which will be ran at the beginning of the provided BlockHeight.
Simulation parameters.
TransitionMatrix is _almost_ a left stochastic matrix.
WeightedOperation is an operation with associated weight.
# Type aliases
AppStateFn returns the app state json bytes.
An Invariant is a function which tests a particular invariant.
group of Invarient.
Operation runs a state machine transition, and ensures the transition happened as expected.
queue of operations.
WeightedOperations is the group of all weighted operations to simulate.