Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ParamChanges(r *rand.Rand) []simulation.ParamChange
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgPurchaseWrkChainStateStorage(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
- func SimulateMsgRecordWrkChainBlock(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
- func SimulateMsgRegisterWrkChain(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
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
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 SimulateMsgRegisterWrkChain ¶
func SimulateMsgRegisterWrkChain(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
func WeightedOperations ¶ added in v1.5.1
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper, ) simulation.WeightedOperations
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.