Versions in this module Expand all Collapse all v0 v0.50.9 Jul 10, 2024 Changes in this version + func DeriveRand(r *rand.Rand) *rand.Rand + func NewStoreDecoderFuncFromCollectionsSchema(schema collections.Schema) func(kvA, kvB kv.Pair) string + func RandIntBetween(r *rand.Rand, min, max int) int + func RandPositiveInt(r *rand.Rand, max math.Int) (math.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 math.Int) math.Int + func RandomDecAmount(r *rand.Rand, max math.LegacyDec) math.LegacyDec + func RandomFees(r *rand.Rand, ctx sdk.Context, spendableCoins sdk.Coins) (sdk.Coins, error) + type Account struct + Address sdk.AccAddress + ConsKey cryptotypes.PrivKey + PrivKey cryptotypes.PrivKey + PubKey cryptotypes.PubKey + func FindAccount(accs []Account, address sdk.Address) (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(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 + BlockMaxGas int64 + BlockSize int + ChainID string + Commit bool + DBBackend string + 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 LegacyParamChange interface + ComposedKey func() string + Key func() string + SimValue func() SimValFn + Subspace func() string + type MsgSimulatorFn func(r *rand.Rand, ctx sdk.Context, accs []Account) sdk.Msg + 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 []byte + Name string + OK bool + Route string + func NewOperationMsg(msg sdk.Msg, ok bool, comment string) OperationMsg + func NewOperationMsgBasic(moduleName, msgType, comment string, ok bool, msg []byte) OperationMsg + func NoOpMsg(moduleName, msgType, comment string) OperationMsg + func (om OperationMsg) LogEvent(eventLogger func(route, op, evResult string)) + func (om OperationMsg) MustMarshal() json.RawMessage + func (om OperationMsg) String() 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 RandomAccountFn func(r *rand.Rand, n int) []Account + type SelectOpFn func(r *rand.Rand) Operation + type SimValFn func(r *rand.Rand) string + type StoreDecoderRegistry map[string]func(kvA, kvB kv.Pair) 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 + type WeightedProposalMsg interface + AppParamsKey func() string + DefaultWeight func() int + MsgSimulatorFn func() MsgSimulatorFn Other modules containing this package github.com/T-ragon/cosmos-sdk/v3