Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.BinaryCodec) func(kvA, kvB kv.Pair) string
- func ProposalMsgs() []simtypes.WeightedProposalMsg
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgPurchaseBeaconStateStorage(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
- func SimulateMsgRecordBeaconTimestamp(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
- func SimulateMsgRegisterBeacon(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 ( BeaconStartingId = "beacon_start_id" BeaconFeeRegister = "beacon_fee_register" BeaconFeeRecord = "beacon_fee_record" BeaconFeePurchaseStorage = "beacon_fee_purchase_storage" BeaconDefaultStorageLimit = "beacon_default_storage_limit" BeaconMaxStorageLimit = "beacon_max_storage_limit" )
View Source
const ( OpWeightMsgRegisterBeacon = "op_weight_msg_register_beacon" OpWeightMsgRecordBeaconTimestamp = "op_weight_msg_record_beacon_timestamp" OpWeightMsgPurchaseBeaconStateStorage = "op_weight_msg_beacon_purchase_storage" DefaultMsgRegisterBeacon = 10 DefaultMsgRecordBeaconTimestamp = 30 DefaultMsgPurchaseBeaconStateStorage = 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
func NewDecodeStore(cdc codec.BinaryCodec) func(kvA, kvB kv.Pair) string
DecodeStore unmarshals the KVPair's Value to the corresponding beacon 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 beacon module
func SimulateMsgPurchaseBeaconStateStorage ¶ added in v1.6.1
func SimulateMsgPurchaseBeaconStateStorage(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
func SimulateMsgRecordBeaconTimestamp ¶
func SimulateMsgRecordBeaconTimestamp(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
func SimulateMsgRegisterBeacon ¶
func SimulateMsgRegisterBeacon(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.