simulation

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgIssueDenom    = "op_weight_msg_issue_denom"
	OpWeightMsgMintMT        = "op_weight_msg_mint_mt"
	OpWeightMsgEditMT        = "op_weight_msg_edit_mt_tokenData"
	OpWeightMsgTransferMT    = "op_weight_msg_transfer_mt"
	OpWeightMsgBurnMT        = "op_weight_msg_transfer_burn_mt"
	OpWeightMsgTransferDenom = "op_weight_msg_transfer_denom"
)

Simulation operation weights constants

Variables

This section is empty.

Functions

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 RandnMTID

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

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for mt

func SimulateMsgBurnMT

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

SimulateMsgBurnMT simulates a burn of an existing MT

func SimulateMsgEditMT

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

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

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

SimulateMsgMintMT simulates a mint of an MT

func SimulateMsgTransferDenom

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

SimulateMsgTransferDenom simulates the transfer of an denom

func SimulateMsgTransferMT

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

SimulateMsgTransferMT simulates the transfer of an MT

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