Documentation ¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ProposalMsgs() []simtypes.WeightedProposalMsg
- func RandomDenom(r *rand.Rand, denoms []string) string
- func RandomizeGenState(simState *module.SimulationState)
- func SimulateMsgBurn(k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgCreateDenom(k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgMint(k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgSetDenomMetadata(k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, ...) simtypes.Operation
- func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) sim.WeightedOperations
Constants ¶
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
const ( DefaultWeightMsgUpdateParams int = 50 OpWeightMsgUpdateParams = "op_weight_msg_update_params" //nolint:gosec )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶
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 ¶
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 ¶
func SimulateMsgBurn( k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgBurn tests and runs a single MsgBurn
func SimulateMsgCreateDenom ¶
func SimulateMsgCreateDenom( k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgCreateDenom tests and runs a single MsgCreateDenom
func SimulateMsgMint ¶
func SimulateMsgMint( k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
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 ¶
SimulateMsgUpdateParams returns a random MsgUpdateParams
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, sk types.SubspacesKeeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) sim.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.