Documentation
¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ProposalMsgs() []simtypes.WeightedProposalMsg
- 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 SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- 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 )
View Source
const ( DefaultWeightMsgUpdateParams int = 100 OpWeightMsgUpdateParams = "op_weight_msg_update_params" //nolint:gosec )
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 ProposalMsgs ¶ added in v1.10.0
func ProposalMsgs() []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents
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 SimulateMsgUpdateParams ¶ added in v1.10.0
SimulateMsgUpdateParams returns a random MsgUpdateParams
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.