simulation

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WrkChainStartingId          = "wrkchain_start_id"
	WrkChainFeeRegister         = "wrkchain_fee_register"
	WrkChainFeeRecord           = "wrkchain_fee_record"
	WrkChainFeePurchaseStorage  = "wrkchain_fee_purchase_storage"
	WrkChainDefaultStorageLimit = "wrkchain_default_storage_limit"
	WrkChainMaxStorageLimit     = "wrkchain_max_storage_limit"
)
View Source
const (
	OpWeightMsgRegisterWrkChain             = "op_weight_msg_register_wrkchain"
	OpWeightMsgRecordWrkChainBlock          = "op_weight_msg_record_wrkchain_hash"
	OpWeightMsgPurchaseWrkChainStateStorage = "op_weight_msg_wrkchain_purchase_storage"

	DefaultMsgRegisterWrkChain             = 10
	DefaultMsgRecordWrkChainBlock          = 30
	DefaultMsgPurchaseWrkChainStateStorage = 5
)

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 wrkchain 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 wrkchain module

func SimulateMsgPurchaseWrkChainStateStorage added in v1.6.1

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

func SimulateMsgRecordWrkChainBlock

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

func WeightedOperations added in v1.5.1

Types

This section is empty.

Jump to

Keyboard shortcuts

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