simulation

package
v0.14.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgIssue  = "op_weight_msg_issue"
	OpWeightMsgRedeem = "op_weight_msg_redeem"
	OpWeightMsgBlock  = "op_weight_msg_block"
	OpWeightMsgPause  = "op_weight_msg_pause"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func DecodeStore

func DecodeStore(cdc *codec.Codec, kvA, kvB kv.Pair) string

DecodeStore the issuance module has no store keys -- all state is stored in params

func Max

func Max(x, y int) int

Max return max of two ints

func ParamChanges

func ParamChanges(r *rand.Rand) []simulation.ParamChange

ParamChanges defines the parameters that can be modified by param change proposals

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for the module

func SimulateMsgBlockAddress

func SimulateMsgBlockAddress(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgBlockAddress generates a MsgBlockAddress with random values

func SimulateMsgIssueTokens

func SimulateMsgIssueTokens(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgIssueTokens generates a MsgIssueTokens with random values

func SimulateMsgPause

func SimulateMsgPause(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgPause generates a MsgChangePauseStatus with random values

func SimulateMsgRedeemTokens

func SimulateMsgRedeemTokens(ak types.AccountKeeper, k keeper.Keeper) simulation.Operation

SimulateMsgRedeemTokens generates a MsgRedeemTokens with random values

func WeightedOperations

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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