simulation

package
v0.0.0-...-018c514 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateDenom               = "op_weight_msg_create_denom"       //nolint:gosec // not credentials
	OpWeightMsgMint                      = "op_weight_msg_mint"               //nolint:gosec // not credentials
	OpWeightMsgBurn                      = "op_weight_msg_burn"               //nolint:gosec // not credentials
	OpWeightMsgChangeAdmin               = "op_weight_msg_change_admin"       //nolint:gosec // not credentials
	OpWeightMsgSetDenomMetadata          = "op_weight_msg_set_denom_metadata" //nolint:gosec // not credentials
	DefaultWeightMsgCreateDenom      int = 50
	DefaultWeightMsgMint             int = 10
	DefaultWeightMsgBurn             int = 10
	DefaultWeightMsgChangeAdmin      int = 5
	DefaultWeightMsgSetDenomMetadata int = 5
)

Variables

View Source
var (
	TypeMsgCreateDenom      = sdk.MsgTypeURL(&types.MsgCreateDenom{})
	TypeMsgMint             = sdk.MsgTypeURL(&types.MsgMint{})
	TypeMsgBurn             = sdk.MsgTypeURL(&types.MsgBurn{})
	TypeMsgChangeAdmin      = sdk.MsgTypeURL(&types.MsgChangeAdmin{})
	TypeMsgSetDenomMetadata = sdk.MsgTypeURL(&types.MsgSetDenomMetadata{})
)

Functions

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for tokenfactory.

func SimulateMsgBurn

SimulateMsgBurn generates a MsgBurn with random values.

func SimulateMsgChangeAdmin

func SimulateMsgChangeAdmin(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) sdksimtypes.Operation

SimulateMsgChangeAdmin generates a MsgChangeAdmin with random values.

func SimulateMsgCreateDenom

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

SimulateMsgCreateDenom generates a MsgCreateDenom with random values.

func SimulateMsgMint

SimulateMsgMint generates a MsgMint with random values.

func SimulateMsgSetDenomMetadata

func SimulateMsgSetDenomMetadata(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) sdksimtypes.Operation

SimulateMsgSetDenomMetadata generates a MsgSetDenomMetadata with random values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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