Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2019 Changes in this version + const BaseProposerReward + const BeginBlockEntryKind + const BonusProposerReward + const CommunityTax + const DepositParamsMinDeposit + const DowntimeJailDuration + const EndBlockEntryKind + const GoalBonded + const Inflation + const InflationMax + const InflationMin + const InflationRateChange + const MaxMemoChars + const MaxValidators + const MinSignedPerWindow + const MsgEntryKind + const QueuedMsgEntryKind + const SendEnabled + const SigVerifyCostED25519 + const SigVerifyCostSECP256K1 + const SignedBlocksWindow + const SlashFractionDoubleSign + const SlashFractionDowntime + const TallyParamsQuorum + const TallyParamsThreshold + const TallyParamsVeto + const TxSigLimit + const TxSizeCostPerByte + const UnbondingTime + const VotingParamsVotingPeriod + var ModuleParamSimulator = map[string]func(r *rand.Rand) interface + func DeriveRand(r *rand.Rand) *rand.Rand + func GetMemberOfInitialState(r *rand.Rand, weights []int) int + func PeriodicInvariants(invariants []sdk.Invariant, period, offset int) []sdk.Invariant + 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 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 + 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 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) (appState json.RawMessage, accounts []Account, chainId string, ...) + type DummyLogWriter struct + func (lw *DummyLogWriter) AddEntry(_ OperationEntry) + func (lw *DummyLogWriter) PrintLogs() + type EventStats map[string]map[string]map[string]int + func NewEventStats() EventStats + func (es EventStats) ExportJSON(path string) + func (es EventStats) Print(w io.Writer) + func (es EventStats) Tally(route, op, evResult string) + type FutureOperation struct + BlockHeight int + BlockTime time.Time + Op Operation + type LogWriter interface + AddEntry func(OperationEntry) + PrintLogs func() + func NewLogWriter(testingmode bool) LogWriter + type Operation func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []Account) (OperationMsg OperationMsg, futureOps []FutureOperation, err error) + type OperationEntry struct + EntryKind string + Height int64 + Operation json.RawMessage + Order int64 + func BeginBlockEntry(height int64) OperationEntry + func EndBlockEntry(height int64) OperationEntry + func MsgEntry(height, order int64, opMsg OperationMsg) OperationEntry + func NewOperationEntry(entry string, height, order int64, op json.RawMessage) OperationEntry + func QueuedMsgEntry(height int64, opMsg OperationMsg) OperationEntry + func (oe OperationEntry) MustMarshal() json.RawMessage + 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 OperationQueue map[int][]Operation + func NewOperationQueue() OperationQueue + type ParamSimulator func(r *rand.Rand) + type Params struct + BlockSizeTransitionMatrix TransitionMatrix + EvidenceFraction float64 + InitialLivenessWeightings []int + LivenessTransitionMatrix TransitionMatrix + NumKeys int + PastEvidenceFraction float64 + func RandomParams(r *rand.Rand) Params + func SimulateFromSeed(tb testing.TB, w io.Writer, app *baseapp.BaseApp, appStateFn AppStateFn, ...) (stopEarly bool, exportedParams Params, err error) + type StandardLogWriter struct + OpEntries []OperationEntry + func (lw *StandardLogWriter) AddEntry(opEntry OperationEntry) + func (lw *StandardLogWriter) PrintLogs() + 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