simulation

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// OpWeightMsgSend Simulation operation weights constants
	OpWeightMsgSend = "op_weight_msg_send"

	// WeightSend nft operations weights
	WeightSend = 100
)

will be removed in the future

Variables

View Source
var TypeMsgSend = sdk.MsgTypeURL(&nft.MsgSend{})

will be removed in the future

Functions

func MsgSendFactory added in v0.2.0

func MsgSendFactory(k keeper.Keeper) simsx.SimMsgFactoryFn[*nft.MsgSend]

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding nft type.

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState, ac address.Codec)

RandomizedGenState generates a random GenesisState for nft.

func SimulateMsgSend

func SimulateMsgSend(
	_ *codec.ProtoCodec,
	txCfg client.TxConfig,
	ak nft.AccountKeeper,
	bk nft.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

SimulateMsgSend generates a MsgSend with random values. migrate to the msg factories instead, this method will be removed in the future

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights migrate to the msg factories instead, this method will be removed in the future

Types

This section is empty.

Jump to

Keyboard shortcuts

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