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: 17 Imported by: 0

Documentation

Index

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
)

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