simulation

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateDenom   = "op_weight_msg_create_denom"
	OpWeightMsgMintONFT      = "op_weight_msg_mint_onft"
	OpWeightMsgEditONFT      = "op_weight_msg_edit_onft"
	OpWeightMsgTransferONFT  = "op_weight_msg_transfer_onft"
	OpWeightMsgBurnONFT      = "op_weight_msg_burn_onft"
	OpWeightMsgTransferDenom = "op_weight_msg_transfer_denom"
	OpWeightMsgUpdateDenom   = "op_weight_msg_update_denom"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func NewDecodeStore

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

func RandID

func RandID(r *rand.Rand, prefix string, n int) string

func RandMetadata

func RandMetadata(r *rand.Rand) types.Metadata

func RandRoyaltyShare

func RandRoyaltyShare(r *rand.Rand) sdk.Dec

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for nft

func SimulateMsgBurnONFT

func SimulateMsgBurnONFT(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation

SimulateMsgBurnONFT simulates a burn onft transaction

func SimulateMsgCreateDenom

func SimulateMsgCreateDenom(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation

SimulateMsgCreateDenom simulates create denom msg

func SimulateMsgMintONFT

func SimulateMsgMintONFT(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation

SimulateMsgMintONFT simulates a mint onft transaction

func SimulateMsgTransferDenom

func SimulateMsgTransferDenom(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation

SimulateMsgTransferDenom simulates a transfer denom transaction

func SimulateMsgTransferONFT

func SimulateMsgTransferONFT(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation

SimulateMsgTransferONFT simulates the transfer of an nft

func SimulateMsgUpdateDenom

func SimulateMsgUpdateDenom(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation

SimulateMsgUpdateDenom simulates a update denom transaction

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

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