simulation

package
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreate = "op_weight_msg_create"
	OpWeightMsgUpdate = "op_weight_msg_update"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for supply

func SimulateMsgCreate

func SimulateMsgCreate(ak govtypes.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgCreate generates a MsgCreateProvider with random values nolint:funlen

func SimulateMsgUpdate

func SimulateMsgUpdate(ak govtypes.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgUpdate generates a MsgUpdateProvider with random values nolint:funlen

func WeightedOperations

func WeightedOperations(
	appParams simulation.AppParams, cdc *codec.Codec, ak govtypes.AccountKeeper,
	k keeper.Keeper) simulation.WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

type GenesisState

type GenesisState struct {
	Providers []types.Provider `json:"providers"`
}

GenesisState defines the basic genesis state used by provider module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL