Documentation ¶
Overview ¶
Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021-present Crypto.org (licensed under the Apache License, Version 2.0)
Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021-present Crypto.org (licensed under the Apache License, Version 2.0)
Copyright (c) 2016-2021 Shanghai Bianjie AI Technology Inc. (licensed under the Apache License, Version 2.0) Modifications Copyright (c) 2021-present Crypto.org (licensed under the Apache License, Version 2.0)
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandnNFTID(r *rand.Rand, min, max int) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgBurnNFT(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgEditNFT(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgMintNFT(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgTransferNFT(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( 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" )
Simulation operation weights constants nolint:gosec
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶
DecodeStore unmarshals the KVPair's Value to the corresponding gov type
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 SimulateMsgMintNFT ¶
func SimulateMsgMintNFT(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateMsgMintNFT simulates a mint of an NFT
func SimulateMsgTransferNFT ¶
func SimulateMsgTransferNFT(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
SimulateMsgTransferNFT simulates the transfer of an NFT
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.