simulation

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 15 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 RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for mt.

func SimulateMsgBurnMT

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

SimulateMsgBurnMT simulates a burn of an existing MT

func SimulateMsgEditMT

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

SimulateMsgEditMT simulates an edit tokenData transaction

func SimulateMsgIssueDenom

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

SimulateMsgIssueDenom simulates issue an denom

func SimulateMsgMintMT

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

SimulateMsgMintMT simulates mint an MT

func SimulateMsgTransferDenom

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

SimulateMsgTransferDenom simulates the transfer of a Denom

func SimulateMsgTransferMT

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

SimulateMsgTransferMT simulates the transfer of an MT

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams,
	cdc codec.JSONCodec,
	k keeper.Keeper,
	ak mt.AccountKeeper,
	bk mt.BankKeeper,
) simulation.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