simulation

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnterpriseSignerAddress     = "ent_signers"
	EnterpriseDecisionTimeLimit = "decision_time_limit"
	EnterpriseMinAccepts        = "min_accepts"
)

Simulation parameter constants

View Source
const (
	OpWeightMsgUndPurchaseOrder        = "op_weight_msg_raise_ent_po"
	OpWeightMsgProcessUndPurchaseOrder = "op_weight_msg_proc_ent_po"
	OpWeightMsgWhitelistAddress        = "op_weight_msg_ent_whitelist"

	DefaultMsgUndPurchaseOrder        = 20
	DefaultMsgProcessUndPurchaseOrder = 20
	DefaultMsgWhitelistAddress        = 20
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func NewDecodeStore added in v1.5.1

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

DecodeStore unmarshals the KVPair's Value to the corresponding enterprise type

func ParamChanges

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

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

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for enterprise

func SimulateMsgProcessUndPurchaseOrder

func SimulateMsgProcessUndPurchaseOrder(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation

func SimulateMsgUndPurchaseOrder added in v1.5.1

func SimulateMsgUndPurchaseOrder(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation

func SimulateMsgWhitelistAddress added in v1.5.1

func SimulateMsgWhitelistAddress(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation

func WeightedOperations added in v1.5.1

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