simulation

package
v6.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateDenom      = "op_weight_msg_create_denom"
	OpWeightMsgMint             = "op_weight_msg_mint"
	OpWeightMsgBurn             = "op_weight_msg_burn"
	OpWeightMsgSetDenomMetadata = "op_weight_msg_set_denom_metadata"

	DefaultWeightMsgCreateDenom      = 30
	DefaultWeightMsgMint             = 70
	DefaultWeightMsgBurn             = 40
	DefaultWeightMsgSetDenomMetadata = 20
)

Simulation operation weights constants

View Source
const (
	DefaultWeightMsgUpdateParams int = 50

	OpWeightMsgUpdateParams = "op_weight_msg_update_params" //nolint:gosec
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func NewDecodeStore

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

NewDecodeStore returns a new decoder that unmarshals the KVPair's Value to the corresponding tokenfactory type

func ProposalMsgs

func ProposalMsgs() []simtypes.WeightedProposalMsg

ProposalMsgs defines the module weighted proposals' contents

func RandomDenom

func RandomDenom(r *rand.Rand, denoms []string) string

RandomDenom returns a random denom from the given slice

func RandomizeGenState

func RandomizeGenState(simState *module.SimulationState)

RandomizeGenState generates a random GenesisState for x/tokenfactory

func SimulateMsgBurn

SimulateMsgBurn tests and runs a single MsgBurn

func SimulateMsgCreateDenom

SimulateMsgCreateDenom tests and runs a single MsgCreateDenom

func SimulateMsgMint

SimulateMsgMint tests and runs a single MsgMint

func SimulateMsgSetDenomMetadata

func SimulateMsgSetDenomMetadata(
	k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper,
) simtypes.Operation

SimulateMsgSetDenomMetadata tests and runs a single MsgSetDenomMetadata

func SimulateMsgUpdateParams

func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg

SimulateMsgUpdateParams returns a random MsgUpdateParams

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