Versions in this module Expand all Collapse all v0 v0.0.2 Nov 23, 2021 Changes in this version + const AverageBlockTime + const BeginBlockEntryKind + const EndBlockEntryKind + const MsgEntryKind + const QueuedMsgEntryKind + func CreateTransitionMatrix(weights [][]int) (simulation.TransitionMatrix, error) + func GetMemberOfInitialState(r *rand.Rand, weights []int) int + func NewSimParamChange(subspace, key string, simVal simulation.SimValFn) simulation.ParamChange + func NewWeightedProposalContent(appParamsKey string, defaultWeight int, ...) simulation.WeightedProposalContent + func RandomRequestBeginBlock(r *rand.Rand, params Params, validators mockValidators, pastTimes []time.Time, ...) abci.RequestBeginBlock + 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 LogWriter interface + AddEntry func(OperationEntry) + PrintLogs func() + func NewLogWriter(testingmode bool) LogWriter + 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 simulation.OperationMsg) OperationEntry + func NewOperationEntry(entry string, height, order int64, op json.RawMessage) OperationEntry + func QueuedMsgEntry(height int64, opMsg simulation.OperationMsg) OperationEntry + func (oe OperationEntry) MustMarshal() json.RawMessage + type OperationQueue map[int][]simulation.Operation + func NewOperationQueue() OperationQueue + type ParamChange struct + func (spc ParamChange) ComposedKey() string + func (spc ParamChange) Key() string + func (spc ParamChange) SimValue() simulation.SimValFn + func (spc ParamChange) Subspace() string + type Params struct + func RandomParams(r *rand.Rand) Params + func SimulateFromSeed(tb testing.TB, w io.Writer, app *baseapp.BaseApp, ...) (stopEarly bool, exportedParams Params, err error) + func (p Params) BlockSizeTransitionMatrix() simulation.TransitionMatrix + func (p Params) EvidenceFraction() float64 + func (p Params) InitialLivenessWeightings() []int + func (p Params) LivenessTransitionMatrix() simulation.TransitionMatrix + func (p Params) NumKeys() int + func (p Params) PastEvidenceFraction() float64 + type StandardLogWriter struct + OpEntries []OperationEntry + func (lw *StandardLogWriter) AddEntry(opEntry OperationEntry) + func (lw *StandardLogWriter) PrintLogs() + type TransitionMatrix struct + func (t TransitionMatrix) NextState(r *rand.Rand, i int) int + type WeightedOperation struct + func NewWeightedOperation(weight int, op simulation.Operation) WeightedOperation + func (w WeightedOperation) Op() simulation.Operation + func (w WeightedOperation) Weight() int + type WeightedOperations []simulation.WeightedOperation + type WeightedProposalContent struct + func (w WeightedProposalContent) AppParamsKey() string + func (w WeightedProposalContent) ContentSimulatorFn() simulation.ContentSimulatorFn + func (w WeightedProposalContent) DefaultWeight() int