simulation

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgIssueDenom    = "op_weight_msg_issue_denom"
	OpWeightMsgMintNFT       = "op_weight_msg_mint_nft"
	OpWeightMsgEditNFT       = "op_weight_msg_edit_nft_tokenData"
	OpWeightMsgTransferNFT   = "op_weight_msg_transfer_nft"
	OpWeightMsgBurnNFT       = "op_weight_msg_transfer_burn_nft"
	OpWeightMsgTransferDenom = "op_weight_msg_transfer_denom"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func GetRandomNFTFromOwner added in v1.1.1

func GetRandomNFTFromOwner(ctx sdk.Context, k NftKeeper, r *rand.Rand) (address sdk.AccAddress, denomID, tokenID string)

func NewDecodeStore

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

DecodeStore unmarshals the KVPair's Value to the corresponding gov type

func RandnNFTID

func RandnNFTID(r *rand.Rand, min, max int) string

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for nft

func SimulateMsgBurnNFT

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

SimulateMsgBurnNFT simulates a burn of an existing NFT

func SimulateMsgEditNFT

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

SimulateMsgEditNFT simulates an edit tokenData transaction

func SimulateMsgIssueDenom

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

SimulateMsgIssueDenom simulates issue an denom

func SimulateMsgMintNFT

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

SimulateMsgMintNFT simulates a mint of an NFT

func SimulateMsgTransferDenom added in v1.1.0

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

SimulateMsgTransferDenom simulates the transfer of an denom

func SimulateMsgTransferNFT

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

SimulateMsgTransferNFT simulates the transfer of an NFT

func WeightedOperations

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

Types

type NftKeeper added in v1.1.1

type NftKeeper interface {
	GetOwners(ctx sdk.Context) (owners types.Owners, err error)
}

Jump to

Keyboard shortcuts

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