Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Marshaler) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simtypes.ParamChange
- func RandCoin(r *rand.Rand, amountLimit int64) sdk.Coin
- func RandDate(r *rand.Rand, max time.Time) time.Time
- func RandHexString(r *rand.Rand, length int) string
- func RandHistoricalDrawData(r *rand.Rand, accounts []simtypes.Account) types.HistoricalDrawData
- func RandHistoricalDrawsData(r *rand.Rand, length int, accounts []simtypes.Account) []types.HistoricalDrawData
- func RandTicket(r *rand.Rand, owner string) types.Ticket
- func RandTicketsSlice(r *rand.Rand, length int, accounts []simtypes.Account) []types.Ticket
- func RandomDistributionParams(r *rand.Rand) types.DistributionParams
- func RandomDraw(r *rand.Rand, limitTime time.Time) types.Draw
- func RandomDrawParams(r *rand.Rand) types.DrawParams
- func RandomTicketParams(r *rand.Rand) types.TicketParams
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgBuyTickets(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONMarshaler, k keeper.Keeper, ...) sim.WeightedOperations
Constants ¶
const ( OpWeightBuyTickets = "op_weight_buy_tickets" DefaultGasValue = 200000 )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶
NewDecodeStore returns a new decoder that unmarshals the KVPair's Value to the corresponding relationships type
func ParamChanges ¶
func ParamChanges(r *rand.Rand) []simtypes.ParamChange
ParamChanges returns a randomly generated set or parameter changes
func RandHexString ¶
RandHexString generates a random hex string of given length
func RandHistoricalDrawData ¶
RandHistoricalDrawData returns a randomly generated HistoricalDrawData
func RandHistoricalDrawsData ¶
func RandHistoricalDrawsData(r *rand.Rand, length int, accounts []simtypes.Account) []types.HistoricalDrawData
RandHistoricalDrawsData returns a randomly generated slice of types.HistoricalDrawData of the given length
func RandTicket ¶
RandTicket generates a random ticket for the given address
func RandTicketsSlice ¶
RandTicketsSlice generates a slice of random tickets of the given length
func RandomDistributionParams ¶ added in v0.1.1
func RandomDistributionParams(r *rand.Rand) types.DistributionParams
RandomDistributionParams returns a randomly generated DistributionParams
func RandomDraw ¶
RandomDraw generates a new random types.Draw object that has an ending not going above the limit provided
func RandomDrawParams ¶ added in v0.1.1
func RandomDrawParams(r *rand.Rand) types.DrawParams
RandomDrawParams returns a randomly generated DrawParams
func RandomTicketParams ¶ added in v0.1.1
func RandomTicketParams(r *rand.Rand) types.TicketParams
RandomTicketParams returns a randomly generated TicketParams
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState sets into the given simState a randomly generated genesis state
func SimulateMsgBuyTickets ¶
func SimulateMsgBuyTickets(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgBuyTickets generates a random types.MsgBuyTickets and sends it to the chain.
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONMarshaler, k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) sim.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.