Versions in this module Expand all Collapse all v0 v0.0.5 Jul 24, 2021 v0.0.4 Jul 4, 2021 v0.0.3 Jul 3, 2021 v0.0.2 Jul 3, 2021 v0.0.1 Jul 3, 2021 Changes in this version + func DeriveRand(r *rand.Rand) *rand.Rand + func NewBarCoin(amt int64) sdk.Coin + func NewFooCoin(amt int64) sdk.Coin + func RandHex(length int) []byte + func RandIntBetween(r *rand.Rand, min, max int) int + func RandPositiveInt(r *rand.Rand, max sdk.Int) (sdk.Int, error) + func RandStringOfLength(r *rand.Rand, n int) string + func RandSubsetCoins(r *rand.Rand, coins sdk.Coins) sdk.Coins + 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 RandomFeeCoins() sdk.Coins + func RandomFees(r *rand.Rand, ctx sdk.Context, spendableCoins sdk.Coins) (sdk.Coins, error) + type Account struct + Address hmTypes.HeimdallAddress + PrivKey crypto.PrivKey + PubKey crypto.PubKey + func FindAccount(accs []Account, address hmTypes.HeimdallAddress) (Account, bool) + func RandomAcc(r *rand.Rand, accs []Account) (Account, int) + func RandomAccounts(r *rand.Rand, n int) []Account + func (acc Account) Equals(acc2 Account) bool + type AppParams map[string]json.RawMessage + func (sp AppParams) GetOrGenerate(cdc *codec.Codec, key string, ptr interface{}, r *rand.Rand, ps ParamSimulator) + type AppStateFn func(r *rand.Rand, accs []Account, config Config) (appState json.RawMessage, accounts []Account, chainId string, ...) + type Config struct + AllInvariants bool + BlockSize int + ChainID string + Commit bool + ExportParamsHeight int + ExportParamsPath string + ExportStatePath string + ExportStatsPath string + GenesisFile string + InitialBlockHeight int + Lean bool + NumBlocks int + OnOperation bool + ParamsFile string + Seed int64 + type Content interface + GetDescription func() string + GetTitle func() string + ProposalRoute func() string + ProposalType func() string + String func() string + ValidateBasic func() error + type ContentSimulatorFn func(r *rand.Rand, ctx sdk.Context, accs []Account) Content + type FutureOperation struct + BlockHeight int + BlockTime time.Time + Op Operation + type Operation func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []Account, ...) (OperationMsg OperationMsg, futureOps []FutureOperation, err error) + type OperationMsg struct + Comment string + Msg json.RawMessage + Name string + OK bool + Route string + func NewOperationMsg(msg sdk.Msg, ok bool, comment string) OperationMsg + func NewOperationMsgBasic(route, name, comment string, ok bool, msg []byte) OperationMsg + func NoOpMsg(route string) OperationMsg + func (om OperationMsg) LogEvent(eventLogger func(route, op, evResult string)) + func (om OperationMsg) MustMarshal() json.RawMessage + func (om OperationMsg) String() string + type ParamChange interface + ComposedKey func() string + Key func() string + SimValue func() SimValFn + Subspace func() string + type ParamSimulator func(r *rand.Rand) + type Params interface + BlockSizeTransitionMatrix func() TransitionMatrix + EvidenceFraction func() float64 + InitialLivenessWeightings func() []int + LivenessTransitionMatrix func() TransitionMatrix + NumKeys func() int + PastEvidenceFraction func() float64 + type SelectOpFn func(r *rand.Rand) Operation + type SimValFn func(r *rand.Rand) string + type TransitionMatrix interface + NextState func(r *rand.Rand, i int) int + type WeightedOperation interface + Op func() Operation + Weight func() int + type WeightedProposalContent interface + AppParamsKey func() string + ContentSimulatorFn func() ContentSimulatorFn + DefaultWeight func() int